Authored by yangyang

修改代码格式

... ... @@ -19,8 +19,8 @@ class SaleData
* 获取专区信息
* @param $specialId 专区ID
*/
public static function getSpecial($specialsaleId) {
public static function getSpecial($specialsaleId)
{
return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URL_SALE_SPECIAL, 'getOneSpecial', array($specialsaleId));
}
... ...
... ... @@ -13,7 +13,8 @@ use LibModels\Web\Product\SearchData as WebProduct;
*
* @author Administrator
*/
class BrandsModel {
class BrandsModel
{
const URL_BRAND_INDEX = '/product/index/brand';
... ... @@ -28,7 +29,8 @@ class BrandsModel {
* @param $options array
* @return array
*/
public static function getBrandSearchData($condition, $options, $domain, $uid, $brandId,$node) {
public static function getBrandSearchData($condition, $options, $domain, $uid, $brandId,$node)
{
// 调用商品搜索接口
$data = SearchData::searchElasticByCondition($condition);
... ... @@ -86,7 +88,8 @@ class BrandsModel {
*
* @return array 品牌banner条数据
*/
public static function getBannerByDomain($domain, $brandId, $uid = '') {
public static function getBannerByDomain($domain, $brandId, $uid = '')
{
// 构造品牌主页url
self::$home = Helpers::url('', '', $domain) . self::URL_BRAND_INDEX;
// 根据品牌Id获取品牌banner图
... ... @@ -121,7 +124,8 @@ class BrandsModel {
}
//获取品牌系列数据
public static function getAdNav($brandId, $status = 1) {
public static function getAdNav($brandId, $status = 1)
{
//调用接口获得数据
$advNav = BrandData::getFolderByBrand($brandId, $status);
$result = array();
... ...