Commit 055d0f51 authored by liuyuzhen's avatar liuyuzhen

分类符号问题

parent 8e094435
......@@ -304,6 +304,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$whereSql = \Our\Common::format(' gc_id in ({0})',implode(',',$secondGcIds));
$secondGcList=$goodsClassDao->getList('gc_id as gcId,gc_name as gcName',$whereSql);
foreach($secondGcList as $secTemp){
$secTemp['gcName'] = htmlspecialchars_decode($secTemp['gcName']);
$newSecondGcList[$secTemp['gcId']] = $secTemp;
}
}
......@@ -312,6 +313,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$whereSql = \Our\Common::format(' gc_id in ({0})',implode(',',$platThirdGcIds));
$platThirdGcList=$goodsClassDao->getList('gc_id as gcId,gc_name as gcName',$whereSql);
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);
$newPlatThirdGcList[$platThirdTemp['gcId']] = $platThirdTemp;
}
......
......@@ -833,7 +833,7 @@ class StoreServiceModel extends \Business\AbstractModel{
if($goodsClassList){
foreach($goodsClassList as $goodsClass){
$returnStores = array();
$returnStores['gcName'] = $goodsClass['gcName'];
$returnStores['gcName'] = htmlspecialchars_decode($goodsClass['gcName']);
$existStoreIds = null;
$returnStores['stores'] = null;
$exitStore = array();
......
......@@ -64,6 +64,7 @@ class GoodsClassModel extends \DAO\AbstractModel {
if($result){
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);
$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