|
@@ -1467,4 +1467,13 @@ class EmployeeService extends Service
|
|
|
|
|
|
return $result;
|
|
|
}
|
|
|
+
|
|
|
+ public static function checkWxUser($userId){
|
|
|
+ $res = Employee::where('id', $userId)
|
|
|
+ ->where('del_time',0)
|
|
|
+ ->where('state',Employee::USE)->get()->first();
|
|
|
+ if(empty($res)) return [false, '该账号无法登录,请联系管理员!'];
|
|
|
+
|
|
|
+ return [true, $res];
|
|
|
+ }
|
|
|
}
|