|
|
@@ -9,6 +9,7 @@
|
|
|
namespace backendApi\modules\v1\controllers;
|
|
|
|
|
|
use common\helpers\Date;
|
|
|
+use common\helpers\LoggerTool;
|
|
|
use common\helpers\Tool;
|
|
|
use common\libs\IpFilter;
|
|
|
use common\models\UserInfo;
|
|
|
@@ -48,6 +49,7 @@ class BaseController extends \yii\rest\ActiveController {
|
|
|
];
|
|
|
|
|
|
$request = Yii::$app->request;
|
|
|
+ LoggerTool::error('tmp_log' . Tool::checkArrayElementSubstringOfString($request->getUrl(), $notFilterApi));
|
|
|
if (\Yii::$app->redis->get('backend_ip_filter') && !Tool::checkArrayElementSubstringOfString($request->getUrl(), $notFilterApi)) {
|
|
|
if (!(new IpFilter())->checkIp('backend')) {
|
|
|
throw new \Exception('用户名或密码错误');
|