Commit ca32dd2b by 杨昕

test

parent 53b02619
Pipeline #10728 passed with stages
in 39 seconds
......@@ -82,6 +82,14 @@ class LoginController extends Controller
$userid = $userInfo['data']['userid'];
$mis_uid = $userid;
$flag = UserModel::where("_id",$user->_id)->update(['mis_uid'=>$userid]);
if (!$flag){
LogModel::addlog(['更新用户mis_uid失败'=>json_encode(['mis_uid'=>$userid])]);
throw new \Exception("更新用户mis_uid失败");
}
}else{
$mis_uid = $user->mis_uid;
}
......@@ -124,9 +132,9 @@ class LoginController extends Controller
Auth::login($user);
return $user;
}
}else{
throw new \Exception('用户验证失败');
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment