feat : add_staple_food

This commit is contained in:
2025-03-24 16:43:32 +08:00
parent 7c64a6bc09
commit 4f56065764
2 changed files with 7 additions and 1 deletions

View File

@@ -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('平台已全部截止下单哦');
}
/**