From 739ad7af3869a1e98754ce7c8a5b8ca6f4f61c2f Mon Sep 17 00:00:00 2001 From: Anyon Date: Sat, 21 Apr 2018 16:55:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=95=86?= =?UTF-8?q?=E5=93=81=E7=BC=96=E8=BE=91=E5=93=81=E7=89=8C=E9=80=89=E6=8B=A9?= =?UTF-8?q?=20#100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/goods/controller/Product.php | 2 +- application/goods/service/ProductService.php | 2 +- application/goods/view/product/form.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/goods/controller/Product.php b/application/goods/controller/Product.php index 3dea62704..165b8b0b9 100644 --- a/application/goods/controller/Product.php +++ b/application/goods/controller/Product.php @@ -89,7 +89,7 @@ class Product extends BasicAdmin */ public function add() { - if (!$this->request->isPost()) { + if ($this->request->isGet()) { $this->title = '添加产品'; $this->_form_assign(); return $this->_form($this->table, 'form'); diff --git a/application/goods/service/ProductService.php b/application/goods/service/ProductService.php index 2aee73770..9ef8535f9 100644 --- a/application/goods/service/ProductService.php +++ b/application/goods/service/ProductService.php @@ -62,7 +62,7 @@ class ProductService // 产品数据组装 foreach ($goodsList as $key => $vo) { // 产品内容处理 - $goodsList[$key]['goods_content'] = htmlspecialchars_decode($vo['goods_content']); + $goodsList[$key]['goods_content'] = $vo['goods_content']; // 产品品牌处理 $goodsList[$key]['brand'] = isset($brandList[$vo['brand_id']]) ? $brandList[$vo['brand_id']] : []; // 产品分类关联 diff --git a/application/goods/view/product/form.html b/application/goods/view/product/form.html index 4c1d45af6..f67ceae8f 100644 --- a/application/goods/view/product/form.html +++ b/application/goods/view/product/form.html @@ -11,7 +11,7 @@ {foreach $brands as $brand} - + {/foreach}