feat : coupon template

This commit is contained in:
2025-02-26 10:11:34 +08:00
parent af23f61991
commit d22eb0c076
3 changed files with 40 additions and 12 deletions

View File

@@ -48,7 +48,7 @@ class OptionalListService extends BaseService
$this->goodCache->cycleId = (int)$cycleId;
$siteInfo = $this->siteCache->getSiteInfo((int)$this->request->input('site_id'));
if (empty($siteInfo) || empty($siteInfo['kitchen_id'])) return ['list' => []];
if (empty($siteInfo) || empty($siteInfo['kitchen_id'])) return $this->return->success('success', ['list' => []]);
$this->goodCache->kitchenId = $siteInfo['kitchen_id'];
$data = $this->goodCache->getOptionalGoodList();