From 7d97c1489b3594092f5c04bd56c42c0ff38b5d67 Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Thu, 14 Feb 2019 11:18:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A5=BD=E5=83=8F=E6=B2=A1=E6=94=B9=E4=BB=80?= =?UTF-8?q?=E4=B9=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wap/controller/Store.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/wap/controller/Store.php b/application/wap/controller/Store.php index 488c7904..e2d5e8d8 100644 --- a/application/wap/controller/Store.php +++ b/application/wap/controller/Store.php @@ -311,6 +311,7 @@ class Store extends AuthController 'site'=>SystemConfigService::more(['wechat_qrcode','wechat_name','wechat_avatar']), 'isFollow'=>$isFollow ]); +// var_dump(SystemConfigService::more(['wechat_qrcode','wechat_name','wechat_avatar']));die; return $this->fetch(); } @@ -329,7 +330,7 @@ class Store extends AuthController //砍价产品 $bargain = StoreBargain::getBargainTerm($id); $bargain['time'] = time(); - $description = htmlspecialchars_decode($bargain['description']); + $description = isset($bargain['description'])?htmlspecialchars_decode($bargain['description']):''; $rule = isset($bargain['rule']) ? htmlspecialchars_decode($bargain['rule']) : ''; if(!$bargainUid) //判断当前登录人是不是砍价