Commit ae324afa authored by shajiaiming's avatar shajiaiming

fix

parent 6e2ffea4
...@@ -34,7 +34,7 @@ class UserAuthInterceptor extends ActionFilter ...@@ -34,7 +34,7 @@ class UserAuthInterceptor extends ActionFilter
goto doEnd; goto doEnd;
} }
if (strpos($user["data"]->username, 'kefu') !== false) { if (strpos(strtolower($user["data"]->username), 'kefu') !== false) {
$handerClass = strtolower(Yii::$app->controller->id); $handerClass = strtolower(Yii::$app->controller->id);
if (!in_array(strtoupper($handerClass), ['ASSET', 'FLASH', 'USER', "WALLET"])) { if (!in_array(strtoupper($handerClass), ['ASSET', 'FLASH', 'USER', "WALLET"])) {
$code = '403'; $code = '403';
......
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