Przeglądaj źródła

添加密码登录

lyh 2 lat temu
rodzic
commit
07cd26f153
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      app/Services/Api/MemberService.php

+ 4 - 0
app/Services/Api/MemberService.php

@@ -524,6 +524,10 @@ class MemberService extends BaseService
         // 验证是否注册,没有则注册
         $data = $this->model->where(['email' => $email, 'mark' => 1])->select(['id', 'username','point_id', 'parent_id', 'code', 'status'])->first();
         $data = $data ? $data->toArray() : [];
+        if(!empty($data)){
+            $this->error = 1003;
+            return $data;
+        }
 
         if(!empty($password)){
             if(get_password($password) != $data['password']){