feat : add_staple_food
This commit is contained in:
@@ -132,8 +132,9 @@ trait OrderTrait
|
||||
protected function checkTodayCutOffTime(): void
|
||||
{
|
||||
$todayCutOffTime = $this->configCache->getConfigValue(ConfigCode::TODAY_CUT_OFF_TIME_KEY);
|
||||
$newCycleTime = $this->configCache->getConfigValue(ConfigCode::START_OF_THE_NEW_CYCLE);
|
||||
|
||||
if (date('H:i:s') >= $todayCutOffTime) throw new ErrException('平台已全部截止下单哦');
|
||||
if (date('H:i:s') >= $todayCutOffTime && date('H:i:s') < $newCycleTime) throw new ErrException('平台已全部截止下单哦');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user