cqpCow 1 년 전
부모
커밋
c023f5551c
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      app/Service/EmployeeService.php

+ 9 - 0
app/Service/EmployeeService.php

@@ -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];
+    }
 }