Commit ee591f8b authored by liuyuzhen's avatar liuyuzhen

分类底图问题

parent 364482e5
......@@ -20,6 +20,9 @@ class ImageConst{
//分类图标前缀
const categoryPicPrefix = 'category-pic-';
const categoryHeadPicPrefix = 'category-headpic-';
const topClassAdvImagePrefis = 'category-hdpic-'; //一级分类对应广告图前缀
//商家举报图片存放路径
......
......@@ -55,6 +55,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
return array('totalCount'=>\Our\ApiConst::zero);
}
}
/**
* 获取平台全部一级分类
* @param $where
......@@ -65,7 +66,6 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
//验证参数
$addressDao = \DAO\AddressModel::getInstance();
$validFlag = $addressDao->getValidAddress($where);
if(!$validFlag){
......
......@@ -830,6 +830,8 @@ class StoreServiceModel extends \Business\AbstractModel{
foreach($goodsClassList as $goodsClass){
$returnStores = array();
$returnStores['gcName'] = htmlspecialchars_decode($goodsClass['gcName']);
//$returnStores['gcImg'] = \Our\Common::getStaticFile(\Our\ImageConst::categoryHeadPicPrefix.$goodsClass['gcId'].\Our\NameConst::jpgSuffix,\Our\ImageConst::defaultPath);
$returnStores['gcImg'] = \Our\Common::getStaticFile('category-headpic-default.jpg',\Our\ImageConst::defaultPath);
$existStoreIds = null;
$returnStores['stores'] = null;
$exitStore = array();
......
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