alisms_1027_2

This commit is contained in:
dengbw
2021-10-27 11:28:57 +08:00
parent fc591adc9c
commit 3522ceb5bc
+6 -4
View File
@@ -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 = [