cqpCow 1 năm trước cách đây
mục cha
commit
c023f5551c
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  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];
+    }
 }