This commit is contained in:
小鱼开发
2024-06-13 21:52:29 +08:00
parent 3793950721
commit 6fcc7beb90
+3 -3
View File
@@ -17,7 +17,6 @@ class User extends Wxapp
parent::__construct($inputs, $app_key);
$this->login_white = array('get_ukey');//登录白名单
$this->majia_white = array('get_ukey', 'get');//超级管理员披上马甲可操作权限
$this->check_status = array();//用户状态校验
$this->check_mobile = array();//需要手机号
$this->check_headimg = array();//授权微信信息
@@ -40,7 +39,7 @@ class User extends Wxapp
*/
protected function get_ukey()
{
$mobile_white = ['18350451617', '13850003412', '13860199666'];
$mobile_white = ['18350451617', '13850003412', '13860199666', '13860199646'];
$code = $this->input_param('code');
$mobile = $this->input_param('mobile');
$sms_code = $this->input_param('sms_code');
@@ -481,17 +480,18 @@ class User extends Wxapp
$province_id = $this->input_param('province_id');
$city_id = $this->input_param('city_id');
$lists = [];
$o_where['status'] = 1;
$biz_id_arr = explode(',', $this->session['biz_id']);
$fileds = 'id,biz_name';
if ($this->session['biz_id'] && $biz_id_arr) {
$province_id && $o_where = ['province_id' => $province_id];
$city_id && $o_where = ['city_id' => $city_id];
$o_where['status'] = 1;
$bizs = $this->biz_model->get_by_id_arr($biz_id_arr, $o_where, $fileds);
} else {
!$province_id && $province_id = '430000';
$province_id && $o_where = ['province_id' => $province_id];
$city_id && $o_where = ['city_id' => $city_id];
$o_where['status'] = 1;
$bizs = $this->biz_model->select($o_where, 'id desc', '', '', $fileds);
}
if ($bizs) {