Prechádzať zdrojové kódy

change team bonus let to 2 z

kevin_zhangl 1 rok pred
rodič
commit
c7f272c0db

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

@@ -126,7 +126,7 @@ class BonusController extends BaseController {
         } else if ($preparePerfLimit !== true && (($w != '0' && $w != '1') || $isCalcMonth != 1)) {
             return static::notice(['user' => [],'team'=>[]]);
         } else if ($preparePerfLimit !== true && (($w == '0' || $w == '1') || $isCalcMonth != 1)) {
-            if ($newMonth && $w != '1'){
+            if ($newMonth && $w != '1' && $w != '2'){
                 return static::notice(['user' => [],'team'=>[]]);
             }
         }