Commit 9fecf799 authored by jianghaiming's avatar jianghaiming

update:set

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