diff --git a/app/Service/Api/Evaluation/ViewService.php b/app/Service/Api/Evaluation/ViewService.php index 9a10917..78fa6de 100644 --- a/app/Service/Api/Evaluation/ViewService.php +++ b/app/Service/Api/Evaluation/ViewService.php @@ -66,12 +66,15 @@ class ViewService extends BaseService $adminInfo = $this->adminUserModel->find($skuInfo->chef_id); + $imageList = $this->getOssObjects(explode(',',$skuInfo->image_ids)); + $imageUrl = array_column($imageList,'url'); + $res = [ 'title' => $skuInfo->title, 'price' => $skuInfo->price, 'chef_id' => $skuInfo->chef_id, 'chef_name' => $adminInfo->chinese_name, - 'image_url' => $this->getOssObjectById($skuInfo->image_ids), + 'image_url' => $imageUrl, ]; return $this->return->success('success',$res); diff --git a/app/Service/Common/OssCallbackService.php b/app/Service/Common/OssCallbackService.php index 5a28772..eddf3cc 100644 --- a/app/Service/Common/OssCallbackService.php +++ b/app/Service/Common/OssCallbackService.php @@ -110,7 +110,8 @@ class OssCallbackService 'category', 'sku', 'salesman', - 'driver' + 'driver', + 'evaluation' ]; /**