xiaogang 3 роки тому
батько
коміт
02f645d630
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/Http/Controllers/Api/AuthorizationsController.php

+ 1 - 1
app/Http/Controllers/Api/AuthorizationsController.php

@@ -131,7 +131,7 @@ class AuthorizationsController extends Controller
             $credentials = ['mobile'=>$mobile,'password'=>$password];
             $credentials = ['mobile'=>$mobile,'password'=>$password];
 
 
             if (!auth('api')->attempt($credentials)) {
             if (!auth('api')->attempt($credentials)) {
-                throw new Exception("用户名或密码错误");
+                throw new Exception("手机号或密码错误");
             }
             }
         }else{
         }else{
             if(!User::query()->where(['mobile'=>$mobile,'is_distory'=>0])->first()){
             if(!User::query()->where(['mobile'=>$mobile,'is_distory'=>0])->first()){