Commit 055d0f51 authored by liuyuzhen's avatar liuyuzhen

分类符号问题

parent 8e094435
...@@ -304,6 +304,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{ ...@@ -304,6 +304,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$whereSql = \Our\Common::format(' gc_id in ({0})',implode(',',$secondGcIds)); $whereSql = \Our\Common::format(' gc_id in ({0})',implode(',',$secondGcIds));
$secondGcList=$goodsClassDao->getList('gc_id as gcId,gc_name as gcName',$whereSql); $secondGcList=$goodsClassDao->getList('gc_id as gcId,gc_name as gcName',$whereSql);
foreach($secondGcList as $secTemp){ foreach($secondGcList as $secTemp){
$secTemp['gcName'] = htmlspecialchars_decode($secTemp['gcName']);
$newSecondGcList[$secTemp['gcId']] = $secTemp; $newSecondGcList[$secTemp['gcId']] = $secTemp;
} }
} }
...@@ -312,6 +313,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{ ...@@ -312,6 +313,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$whereSql = \Our\Common::format(' gc_id in ({0})',implode(',',$platThirdGcIds)); $whereSql = \Our\Common::format(' gc_id in ({0})',implode(',',$platThirdGcIds));
$platThirdGcList=$goodsClassDao->getList('gc_id as gcId,gc_name as gcName',$whereSql); $platThirdGcList=$goodsClassDao->getList('gc_id as gcId,gc_name as gcName',$whereSql);
foreach($platThirdGcList as $platThirdTemp){ foreach($platThirdGcList as $platThirdTemp){
$platThirdTemp['gcName'] = htmlspecialchars_decode($platThirdTemp['gcName']);
$platThirdTemp['gcImage'] = \Our\Common::getStaticFile(\Our\ImageConst::categoryPicPrefix.$platThirdTemp['gcId'].\Our\NameConst::jpgSuffix,\Our\ImageConst::defaultPath); $platThirdTemp['gcImage'] = \Our\Common::getStaticFile(\Our\ImageConst::categoryPicPrefix.$platThirdTemp['gcId'].\Our\NameConst::jpgSuffix,\Our\ImageConst::defaultPath);
$newPlatThirdGcList[$platThirdTemp['gcId']] = $platThirdTemp; $newPlatThirdGcList[$platThirdTemp['gcId']] = $platThirdTemp;
} }
......
...@@ -833,7 +833,7 @@ class StoreServiceModel extends \Business\AbstractModel{ ...@@ -833,7 +833,7 @@ class StoreServiceModel extends \Business\AbstractModel{
if($goodsClassList){ if($goodsClassList){
foreach($goodsClassList as $goodsClass){ foreach($goodsClassList as $goodsClass){
$returnStores = array(); $returnStores = array();
$returnStores['gcName'] = $goodsClass['gcName']; $returnStores['gcName'] = htmlspecialchars_decode($goodsClass['gcName']);
$existStoreIds = null; $existStoreIds = null;
$returnStores['stores'] = null; $returnStores['stores'] = null;
$exitStore = array(); $exitStore = array();
......
...@@ -64,6 +64,7 @@ class GoodsClassModel extends \DAO\AbstractModel { ...@@ -64,6 +64,7 @@ class GoodsClassModel extends \DAO\AbstractModel {
if($result){ if($result){
foreach ($result as &$class){ foreach ($result as &$class){
$class['gcName'] = htmlspecialchars_decode($class['gcName']);
$class['gcImage'] = \Our\Common::getStaticFile(\Our\ImageConst::categoryPicPrefix.$class['gcId'].\Our\NameConst::jpgSuffix,\Our\ImageConst::defaultPath); $class['gcImage'] = \Our\Common::getStaticFile(\Our\ImageConst::categoryPicPrefix.$class['gcId'].\Our\NameConst::jpgSuffix,\Our\ImageConst::defaultPath);
$classes[$class['gcId']] = $class; $classes[$class['gcId']] = $class;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment