diff --git a/application/api/controller/Goods.php b/application/api/controller/Goods.php index 457de1990e65b4b04840fe4e6663cd19324c67a7..6c327428a385bee2b1de69b8290c1b089f588501 100755 --- a/application/api/controller/Goods.php +++ b/application/api/controller/Goods.php @@ -117,10 +117,6 @@ class Goods extends Common { // 开始处理 $params = $this->data_post; - if(isset($_POST['spec'])) - { - $params['spec'] = $_POST['spec']; - } return GoodsService::GoodsSpecType($params); } @@ -136,10 +132,6 @@ class Goods extends Common { // 开始处理 $params = $this->data_post; - if(isset($_POST['spec'])) - { - $params['spec'] = $_POST['spec']; - } return GoodsService::GoodsSpecDetail($params); } diff --git a/application/service/GoodsService.php b/application/service/GoodsService.php index 18e1d6c2e1732ef0c760a3286eda6a935baaae3f..e2d81e8cfde030ed4b60876268efe9640fa4dcc5 100755 --- a/application/service/GoodsService.php +++ b/application/service/GoodsService.php @@ -1789,7 +1789,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) { @@ -1903,7 +1903,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) { diff --git a/application/tags.php b/application/tags.php index 5454c299df3695df7056873e1016ba2fd4623a3a..ec41fab983ff3c445d7dc5ba17c57511e43b2be9 100755 --- a/application/tags.php +++ b/application/tags.php @@ -62,14 +62,6 @@ return array ( 1 => 'app\\plugins\\commononlineservice\\Hook', 2 => 'app\\plugins\\expressforkdn\\Hook', ), - 'plugins_service_goods_handle_end' => - array ( - 0 => 'app\\plugins\\usernotloginhidegoodsprice\\Hook', - ), - 'plugins_service_goods_spec_base' => - array ( - 0 => 'app\\plugins\\usernotloginhidegoodsprice\\Hook', - ), 'plugins_service_navigation_header_handle' => array ( 0 => 'app\\plugins\\answers\\Hook',