Commit 72b640d1 authored by jianghaiming's avatar jianghaiming

update:set

parent e14390c0
......@@ -299,16 +299,21 @@ class DistributorService
public static function distributor($params)
{
if (empty($params['user_id'])) {
throw new DistributorException(['cus' => 14]);
if (!empty($params['distributor_user_id'])) {
$where['user_id'] = $params['distributor_user_id'];
}else{
if (empty($params['user_id'])) {
throw new DistributorException(['cus' => 14]);
}
$where['user_id'] = $params['user_id'];
}
$where['user_id'] = $params['user_id'];
$data = [];
$info = Distributor::getRecord($where);
$param = [
'user_id' => !empty($params['user_id']) ? $params['user_id'] : '',
'user_id' => !empty($where['user_id']) ? $where['user_id'] : '',
];
$jwUser = new JwUser();
$userInfo = $jwUser->getUserByUserId($params);
......
......@@ -93,7 +93,7 @@ class MarketingService
$page = ($params['page'] - 1) * $limit;
if (!empty($params['marketing_name'])) {
$where['marketing_name'] = $params['marketing_name'];
$where['marketing_name[~]'] = $params['marketing_name'];
}
if (!empty($params['marketing_id'])) {
......
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