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