作者 lyh

gx

@@ -239,7 +239,7 @@ class OptimizeController extends BaseController @@ -239,7 +239,7 @@ class OptimizeController extends BaseController
239 } 239 }
240 if(isset($this->map['channel_id']) && !empty($this->map['channel_id'])){ 240 if(isset($this->map['channel_id']) && !empty($this->map['channel_id'])){
241 $query->where(function ($subQuery) { 241 $query->where(function ($subQuery) {
242 - $subQuery->orWhere('gl_project.channel','like','%"zone_id": "'.$this->map['channel_id'].'"%') 242 + $subQuery->orWhere('gl_project.channel','like','%"channel_id": "'.$this->map['channel_id'].'"%')
243 ->orWhere('gl_project.channel','like','%"zone_id": '.$this->map['channel_id'].'%'); 243 ->orWhere('gl_project.channel','like','%"zone_id": '.$this->map['channel_id'].'%');
244 }); 244 });
245 } 245 }
@@ -49,6 +49,10 @@ class LoginLogic extends BaseLogic @@ -49,6 +49,10 @@ class LoginLogic extends BaseLogic
49 if (Manage::STATUS_DISABLE == $manage->status) { 49 if (Manage::STATUS_DISABLE == $manage->status) {
50 $this->fail('帐号已被禁用'); 50 $this->fail('帐号已被禁用');
51 } 51 }
  52 + $hrStatus = ManageHr::where('manage_id', $manage['id'])->value('status')?:1;
  53 + if($hrStatus != ManageHr::STATUS_ONE){
  54 + $this->fail('当前员工已离职');
  55 + }
52 $type = 1;//账号密码登录 56 $type = 1;//账号密码登录
53 if (!Hash::check($this->param['password'], $manage->password)) { 57 if (!Hash::check($this->param['password'], $manage->password)) {
54 //验证验证码 58 //验证验证码