Ver Fonte

feat: NG-15: 新会员注册时增加国家与语言选项.

zhangl há 1 ano atrás
pai
commit
23a046aefa
2 ficheiros alterados com 3 adições e 30 exclusões
  1. 2 2
      backendApi/config/menu.php
  2. 1 28
      console/controllers/BonusController.php

+ 2 - 2
backendApi/config/menu.php

@@ -291,8 +291,8 @@ return [
             ['name'=>'Sales Record', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'perf-order', 'routePath'=>'bonus/perf-order', 'show'=>1, 'wiki' => 'salesRecord'],//业绩单
             ['name'=>'业绩单导出', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'perf-order-export', 'routePath'=>'bonus/perf-order-export', 'show'=>0,],
 //            ['name'=>'会员实时业绩', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'real-time-perf', 'routePath'=>'bonus/real-time-perf', 'show'=>1,],
-            ['name'=>'Period performance', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'perf-period-list', 'routePath'=>'bonus/perf-period-list', 'show'=>1, 'wiki' => 'periodPerformance'],//期业绩
-            ['name'=>'期业绩导出', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'perf-period-list-export', 'routePath'=>'bonus/perf-period-list-export', 'show'=>0,],
+//            ['name'=>'Period performance', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'perf-period-list', 'routePath'=>'bonus/perf-period-list', 'show'=>1, 'wiki' => 'periodPerformance'],//期业绩
+//            ['name'=>'期业绩导出', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'perf-period-list-export', 'routePath'=>'bonus/perf-period-list-export', 'show'=>0,],
             ['name'=>'Monthly performance', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'perf-month', 'routePath'=>'bonus/perf-month', 'show'=>1, 'wiki' => 'monthlyPerformance'],//月业绩
             ['name'=>'月业绩导出', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'perf-month-export', 'routePath'=>'bonus/perf-month-export', 'show'=>0,],
 //            ['name'=>'Score-month', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'score-month', 'routePath'=>'bonus/score-month', 'show'=>1,],//月积分

+ 1 - 28
console/controllers/BonusController.php

@@ -80,13 +80,6 @@ class BonusController extends BaseController
         }
         if(!$handleResult){
             echo "第{$params['periodNum']}期生成业绩单更新失败,原因:".Form::formatErrorsForApi($formModel->getErrors());
-            // Log::async([
-//                'type' => LogAsync::TYPE_BONUS,
-//                'route' => \Yii::$app->controller->id.'/'.\Yii::$app->controller->action->id,
-//                'title' => "第{$params['periodNum']}期生成业绩单更新失败",
-//                'detail' => "第{$params['periodNum']}期生成业绩单更新失败,原因:".Form::formatErrorsForApi($formModel->getErrors()),
-//                'status' => 0,
-//            ]);
         }
     }
 
@@ -108,13 +101,6 @@ class BonusController extends BaseController
         }
         if(!$handleResult){
             echo "第{$params['periodNum']}期奖金结算更新失败,原因:".Form::formatErrorsForApi($formModel->getErrors());
-            // Log::async([
-//                'type' => LogAsync::TYPE_BONUS,
-//                'route' => \Yii::$app->controller->id.'/'.\Yii::$app->controller->action->id,
-//                'title' => "第{$params['periodNum']}期奖金结算更新失败",
-//                'detail' => "第{$params['periodNum']}期奖金结算更新失败,原因:".Form::formatErrorsForApi($formModel->getErrors()),
-//                'status' => 0,
-//            ]);
         }
     }
 
@@ -136,13 +122,6 @@ class BonusController extends BaseController
         }
         if(!$handleResult){
             echo "第{$params['periodNum']}期挂网失败,原因:".Form::formatErrorsForApi($formModel->getErrors());
-            // Log::async([
-//                'type' => LogAsync::TYPE_BONUS,
-//                'route' => \Yii::$app->controller->id.'/'.\Yii::$app->controller->action->id,
-//                'title' => "第{$params['periodNum']}期挂网失败",
-//                'detail' => "第{$params['periodNum']}期挂网失败,原因:".Form::formatErrorsForApi($formModel->getErrors()),
-//                'status' => 0,
-//            ]);
         }
     }
 
@@ -159,13 +138,7 @@ class BonusController extends BaseController
             $handleResult = true;
         }
         if(!$handleResult){
-            // Log::async([
-//                'type' => LogAsync::TYPE_BONUS,
-//                'route' => \Yii::$app->controller->id.'/'.\Yii::$app->controller->action->id,
-//                'title' => "于{$params['periodNum']}期自动提现上月奖金失败",
-//                'detail' => "于{$params['periodNum']}期自动提现上月奖金失败",
-//                'status' => 0,
-//            ]);
+
         }
     }