Ver Fonte

feat: 增加登陆日志.

zhangl há 1 ano atrás
pai
commit
7a2598655a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      backendApi/modules/v1/controllers/OauthController.php

+ 1 - 1
backendApi/modules/v1/controllers/OauthController.php

@@ -55,7 +55,7 @@ class OauthController extends BaseController
     public function actionLogin() {
     public function actionLogin() {
         $model = new LoginForm();
         $model = new LoginForm();
         if ($model->load(Yii::$app->request->post()) && $model->login()) {
         if ($model->load(Yii::$app->request->post()) && $model->login()) {
-            LoggerTool::debug(json_encode(['actionLoginSuccess', Yii::$app->request->post()], $_SERVER));
+            LoggerTool::debug(json_encode(['actionLoginSuccess', Yii::$app->request->post(), $_SERVER]));
             $token = Yii::$app->getUser()->getToken();
             $token = Yii::$app->getUser()->getToken();
             return static::notice($token);
             return static::notice($token);
         } else {
         } else {