Commit eba22b17 authored by jianghaiming's avatar jianghaiming

update:set

parent 14147acc
......@@ -69,6 +69,12 @@ class DistributorService
$userName = !empty($params['user_name']) ? $params['user_name'] : '';
$distributorType = 1; //一级团长
$info = Distributor::getRecord(['user_id' => $userId,'distributor_type' => $distributorType]);
$shareUserId = !empty($params['share_user_id']) ? $params['share_user_id'] : '';
if (!empty($shareUserId)) {
$userId = $shareUserId;
}
if (!empty($info)) {
throw new DistributorException(['cus'=>2]);
}
......
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