|
|
@@ -149,6 +149,11 @@ class CalcConsole extends BaseBusiness
|
|
|
$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'];
|
|
|
+ $prevPeriodNum = $periodNum - 1;
|
|
|
+ $prevPeriod = Period::find()->where('PERIOD_NUM = :PERIOD_NUM',[':PERIOD_NUM'=>$prevPeriodNum])->asArray()->one();
|
|
|
+ if($prevPeriod['IS_SENT']==0){
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (
|
|
|
Period::isPreparing($periodNum)
|
|
|
// || $currentPeriod['IS_MONTH'] == 0
|