diff --git a/app/api/controller/Store.php b/app/api/controller/Store.php index b95203aa..01889344 100644 --- a/app/api/controller/Store.php +++ b/app/api/controller/Store.php @@ -115,10 +115,10 @@ class Store extends Controller { $storeid = request()->header()['storeid']; $info = StoreInfoModel::where('store_id', $storeid)->find()->toArray(); - $file = UploadFile::where('file_id', $info['group_share_img_id'])->field('file_path,domain')->find(); - $info['group_share_img'] = $file['preview_url']; - $file = UploadFile::where('file_id', $info['logo_image_id'])->field('file_path,domain')->find(); - $info['logo_image'] = $file['preview_url']; + $file = UploadFile::where('file_id', '=', $info['group_share_img_id'])->find(); + $info['group_share_img'] = $file->preview_url; + $file = UploadFile::where('file_id', '=', $info['logo_image_id'])->find(); + $info['logo_image'] = $file->preview_url; return $this->renderSuccess($info); }