From 530013e6317d8e7ed1baaf426c8d66e20f947e1a Mon Sep 17 00:00:00 2001 From: dengbw Date: Wed, 27 Oct 2021 11:28:57 +0800 Subject: [PATCH] alisms_1027_2 --- api/controllers/wxapp/licheb/User.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api/controllers/wxapp/licheb/User.php b/api/controllers/wxapp/licheb/User.php index 2a9c1046..1f381ef5 100644 --- a/api/controllers/wxapp/licheb/User.php +++ b/api/controllers/wxapp/licheb/User.php @@ -33,7 +33,7 @@ class User extends Wxapp */ protected function get_ukey() { - $mobile_white = ['15359333655','18050017004','18350451617']; + $mobile_white = ['15359333655', '18050017004', '18350451617']; $code = $this->input_param('code'); $mobile = $this->input_param('mobile'); $sms_code = $this->input_param('sms_code'); @@ -42,7 +42,7 @@ class User extends Wxapp throw new Exception('参数错误', API_CODE_INVILD_PARAM); } //判断验证码 - if(!in_array($mobile,$mobile_white) && $this->env!='d'){//测试环境和测试号码 + if (!in_array($mobile, $mobile_white) && $this->env != 'd') {//测试环境和测试号码 $mc = &load_cache(); $key = "licheb_login_code_" . $mobile; $cache_code = $mc->get($key); @@ -230,8 +230,10 @@ class User extends Wxapp ]; } else { //未派单客户 - $where = ['admin_id' => 0, 'biz_id' => $biz_id]; - $group_id == 4 && $where['brand_id!='] = 3; //渠道经理过滤 + $where = ['admin_id' => 0, 'biz_id' => $biz_id, 'status>=' => 0]; + if ($group_id == 4 && $biz_id != 1) { + $where['brand_id!='] = 3; //渠道经理过滤 + } $unuse_count = $this->customers_model->count($where); $defeat_count = $this->customers_model->count(array('biz_id' => $biz_id, 'defeat_time >' => 0, 'status>' => -1)); $customer_op_list = [