feat : rank
This commit is contained in:
@@ -77,7 +77,7 @@ class AddStapleFoodInfoService extends BaseService
|
|||||||
if (empty($skuInfo)) return $this->return->success('success', ['add_food_info' => []]);
|
if (empty($skuInfo)) return $this->return->success('success', ['add_food_info' => []]);
|
||||||
|
|
||||||
$res = $skuInfo->toArray();
|
$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]);
|
return $this->return->success('success', ['add_food_info' => $res]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user