feat : check

This commit is contained in:
2025-04-01 16:08:07 +08:00
parent dae9d1a38a
commit 263d7b4372
5 changed files with 65 additions and 3 deletions

View File

@@ -112,6 +112,8 @@ trait OrderTrait
if ($this->orderType != OrderCode::ORDER_TYPE_MEAL) return;
if ($this->isMealCateringByCache($this->siteId, $key, $this->cycleId)) throw new ErrException('该点位的套餐'.$this->skuArr[$key]['title'].'已配餐截单,请选择其他套餐');
if ($this->checkSkuMeal($key, $this->cycleId)) throw new ErrException('该套餐'.$this->skuArr[$key]['title'].'已配餐截单,请选择其他套餐');
}
}