kevin 1 год назад
Родитель
Сommit
5605ccc899
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      frontendApi/modules/v1/controllers/BonusController.php

+ 2 - 2
frontendApi/modules/v1/controllers/BonusController.php

@@ -123,9 +123,9 @@ class BonusController extends BaseController {
         //特殊要求,测试环境要去掉是否是周日的判断,周一至周日都能看
         if($preparePerfLimit === true && $isCalcMonth != 1) {
             return static::notice(['user' => [],'team'=>[]]);
-        } else if ($preparePerfLimit !== true && (($w != '0' && $w != '1') || $isCalcMonth != 1)) {
+        } else if ($preparePerfLimit !== true && (($w != '0' && $w != '1' && $w != '2') || $isCalcMonth != 1)) {
             return static::notice(['user' => [],'team'=>[]]);
-        } else if ($preparePerfLimit !== true && (($w == '0' || $w == '1') || $isCalcMonth != 1)) {
+        } else if ($preparePerfLimit !== true && (($w == '0' || $w == '1' && $w != '2') || $isCalcMonth != 1)) {
             if ($newMonth && $w != '1'){
                 return static::notice(['user' => [],'team'=>[]]);
             }