| xqd
@@ -140,7 +140,7 @@ class AuthController extends Controller
|
|
|
$status =empty($user) ? 0 : $user->status;
|
|
|
if ($status == 0) return $this->error(ErrorCode::LOCK_USER);
|
|
|
if (Auth::attempt(['phone'=>$phone,'password'=>$password])) {
|
|
|
- $user = Auth::user();
|
|
|
+ $user = Auth::guard('api')->user();
|
|
|
/* if (!empty($wechat)) {
|
|
|
$user->wechat =$wechat;
|
|
|
$user->save();
|