kevin_zhangl %!s(int64=2) %!d(string=hai) anos
pai
achega
c6029a8f49
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      frontendApi/modules/v1/controllers/BonusController.php

+ 3 - 0
frontendApi/modules/v1/controllers/BonusController.php

@@ -13,6 +13,7 @@ namespace frontendApi\modules\v1\controllers;
 use common\helpers\Cache;
 use common\helpers\Date;
 use common\helpers\Form;
+use common\helpers\LoggerTool;
 use common\helpers\Tool;
 use common\helpers\user\Balance;
 use common\helpers\user\Info;
@@ -131,10 +132,12 @@ class BonusController extends BaseController {
         $month = $period->getNowYearMonth();
         // 判断此业绩期是否已经完成生成了预计算业绩单,生成完毕才能看到
         $isPerfed = Period::checkPerf($periodNum);
+        LoggerTool::debug('Calc-1');
         if (!$isPerfed) {
             return static::notice(['user' => [],'team'=>[]]);
         }
         // 判断当前时间,是否临近封期,否则隐藏
+        LoggerTool::debug('Calc-2');
         if ($periodNum % 2!=0) {
             return static::notice(['user' => [],'team'=>[]]);
         }