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

@@ -73,6 +73,11 @@ class CateringService extends CateringBaseService
// 配餐
$this->catering();
// todo
// 查询该点所有套餐是否已经配餐 如果是就缓存关闭该点
// 关闭线路
return $this->return->success('success',['num' => $this->resCount]);
}

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