|
@@ -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()){
|