From 467234228223983cdb22c0b0df5a1ec199b51b62 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Thu, 8 Feb 2024 13:02:32 +0800 Subject: [PATCH] 1 --- app/api/controller/Goods.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/api/controller/Goods.php b/app/api/controller/Goods.php index 332230c0..424de86e 100644 --- a/app/api/controller/Goods.php +++ b/app/api/controller/Goods.php @@ -59,6 +59,9 @@ class Goods extends Controller $param['store_id'] = $storeid; $model = new GoodsModel; $goodsInfo = $model->getDetails($goodsId, $verifyStatus); + if (!empty($goodsInfo['content'])) { + $goodsInfo['content'] = str_ireplace('onload="if(this.width>750){this.height=this.height*(750.0/this.width); this.width = 750;}', '', $goodsInfo['content']); + } return $this->renderSuccess(['detail' => $goodsInfo]); }