Commit e3fbe11b authored by jianghaiming's avatar jianghaiming

update:set

parent 320e8b00
...@@ -65,10 +65,6 @@ class DistributorService ...@@ -65,10 +65,6 @@ class DistributorService
throw new DistributorException(['cus'=>3]); throw new DistributorException(['cus'=>3]);
} }
if (empty($type)) {
throw new DistributorException(['cus'=>12]);
}
$detectParams = [ $detectParams = [
'businessId' => 1, 'businessId' => 1,
'text' => !empty($userName) ? $userName : '', 'text' => !empty($userName) ? $userName : '',
...@@ -84,7 +80,7 @@ class DistributorService ...@@ -84,7 +80,7 @@ class DistributorService
} }
Distributor::beginTransaction(); Distributor::beginTransaction();
$userCode = $userId . '_' . $type; $userCode = $userId . '_' . $distributorType;
$data = [ $data = [
'user_id' => $userId, 'user_id' => $userId,
'user_name' => $userName, 'user_name' => $userName,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment