From da08ed1dbc3fa718cb8b6e67a8b890f9f259e82c Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Mon, 14 Apr 2025 10:20:10 +0800 Subject: [PATCH] feat : sts --- app/Service/Api/Evaluation/ViewService.php | 5 ++++- app/Service/Common/OssCallbackService.php | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) 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' ]; /**