瀏覽代碼

Merge branch 'new-version' into feature/NC-45

# Conflicts:
#	backendApi/config/params.php
zhangl 1 年之前
父節點
當前提交
9dbfc2898a

+ 1 - 0
backendApi/config/urlManagerRules.php

@@ -18,6 +18,7 @@ return [
             'GET page-data' => 'page-data',
             'GET captcha' => 'captcha',
             'GET send-notice' => 'send-notice',
+            'GET clear-login-failed-num' => 'clear-login-failed-num',
         ],
     ],
     [

File diff suppressed because it is too large
+ 0 - 0
backendApi/modules/v1/controllers/ShopController.php


+ 9 - 0
backendApi/modules/v1/controllers/SiteController.php

@@ -160,4 +160,13 @@ class SiteController extends BaseController
         ];
         return static::notice(['data' => $data['bug监控正常运行,没有发现异常.']]);
     }
+
+    public function actionClearLoginFailedNum()
+    {
+        $adminName = Yii::$app->params['userStatus'];
+
+        \Yii::$app->cache->delete('FAIL_NUMS:' . $adminName);
+
+        return static::notice(['data' => '登陆失败次数清空']);
+    }
 }

Some files were not shown because too many files changed in this diff