|
@@ -52,7 +52,7 @@ class AuthTokenMiddleware implements MiddlewareInterface
|
|
|
$authInfo['user']['card_id'] = $main_user['card_id'];
|
|
|
}
|
|
|
}
|
|
|
- if (!$authInfo['user']['real_check'] && !in_array($request->action(), ['realNameCheck', 'logout', 'user', 'userinfo'])) {
|
|
|
+ if (!$authInfo['user']['real_check'] && !in_array($request->action(), ['realNameCheck', 'logout', 'user', 'userinfo', 'upload'])) {
|
|
|
throw new AuthException('请先进行实名认证');
|
|
|
}
|
|
|
if (!$authInfo['user']->is_promoter) {
|