|
|
@@ -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'=>[]]);
|
|
|
}
|