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