Sfoglia il codice sorgente

增加判断月结点

theo 3 anni fa
parent
commit
9483d39d8b
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      common/helpers/bonus/Calc/CalcConsole.php

+ 4 - 1
common/helpers/bonus/Calc/CalcConsole.php

@@ -103,7 +103,10 @@ if (empty($period)){
         $nowTs = time();
         $currentPeriod = Period::find()->where('START_TIME< :NOW_TIME',['NOW_TIME'=>$nowTs])->where('END_TIME>= :NOW_TIME',['NOW_TIME'=>$nowTs-6])->asArray()->one();
         $periodNum = $currentPeriod['PERIOD_NUM'];
-        if (Period::isProcessing($periodNum)) {
+        if (
+            Period::isProcessing($periodNum)
+            || $currentPeriod['IS_MONTH'] == 0
+        ){
             return;
         }
         if($nowTs+86400>$currentPeriod['END_TIME'] ){