From b6266e232293bfb4b14656026520919a93984019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=80=86=E5=A4=A9=E7=9A=84=E8=9D=88=E8=9D=88?= <632522043@qq.com> Date: Sat, 23 Mar 2019 10:50:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E7=A8=8B=E5=BA=8FBU?= =?UTF-8?q?G?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/GoodsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/service/GoodsService.php b/application/service/GoodsService.php index 94913f675..aac2f934a 100755 --- a/application/service/GoodsService.php +++ b/application/service/GoodsService.php @@ -1831,7 +1831,7 @@ class GoodsService // 规格不为数组则为json字符串 if(!is_array($params['spec'])) { - $params['spec'] = json_decode($params['spec'], true); + $params['spec'] = json_decode(htmlspecialchars_decode($params['spec']), true); } foreach($params['spec'] as $v) { -- GitLab