Commit 137e106c authored by shajiaiming's avatar shajiaiming

修复已知问题

parent b9e90dbd
......@@ -26,14 +26,14 @@ class LoginStatusAuthInterceptor extends ActionFilter
$token_string = Yii::$app->request->headers->get('Token');
if(false == $token_string){
$msg = 'platform auth error';
$code = '40004';
$code = '40001';
goto doEnd;
}
$model = new Admin();
$user = $model->loginByAccessToken($token_string,'');
if(false == $user){
$msg = 'user auth error';
$code = '40004';
$code = '40002';
goto doEnd;
}
$user_id = $user->uid;
......
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