Authored by yangyang

修改小bug

... ... @@ -95,9 +95,8 @@ class BrandsModel {
$bannerImg = Helpers::getImageUrl($bannerImg['data']['banner'], '', 150);
}
// 根据品牌Id获取品牌(简介)、收藏
if (isset($uid)) {
$intro = BrandData::getBrandIntro($brandId, $uid);
}
$intro = BrandData::getBrandIntro($brandId, $uid);
$is_favorite = false;
$shopName = false;
if(isset($intro['data'])){
... ...
<?php
use Action\WebAction;
use Product\BrandsModel;
use LibModels\Web\Product\BrandData;
class IndexController extends WebAction
{
... ...
... ... @@ -14,7 +14,6 @@ class SaleController extends WebAction
{
//获取专区ID
$specialsaleId = $this->param('specialsaleId');
$specialsaleId = 1; //测试数据
$specialInfo = SaleData::getSpecial($specialsaleId);
$special = $specialInfo['data'];
... ... @@ -61,7 +60,7 @@ class SaleController extends WebAction
//传促销id
if(!empty($special['ispromotion'])){
//$condition['promotion'] = $special['ispromotion'];
$condition['promotion'] = $special['ispromotion'];
}else{
$condition['promotion'] = $promotion;
}
... ...