feat : rank

This commit is contained in:
2025-04-09 16:15:12 +08:00
parent e838124ed3
commit 6b774b8509

View File

@@ -77,7 +77,7 @@ class AddStapleFoodInfoService extends BaseService
if (empty($skuInfo)) return $this->return->success('success', ['add_food_info' => []]);
$res = $skuInfo->toArray();
$res['url'] = $this->getOssObjectById($res['image_ids']);
$res['url'] = $this->getOssObjectById((int)$res['image_ids']) ?? '';
return $this->return->success('success', ['add_food_info' => $res]);
}