Authored by yangyang

修改代码格式

@@ -19,8 +19,8 @@ class SaleData @@ -19,8 +19,8 @@ class SaleData
19 * 获取专区信息 19 * 获取专区信息
20 * @param $specialId 专区ID 20 * @param $specialId 专区ID
21 */ 21 */
22 - public static function getSpecial($specialsaleId) {  
23 - 22 + public static function getSpecial($specialsaleId)
  23 + {
24 return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URL_SALE_SPECIAL, 'getOneSpecial', array($specialsaleId)); 24 return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URL_SALE_SPECIAL, 'getOneSpecial', array($specialsaleId));
25 } 25 }
26 26
@@ -13,7 +13,8 @@ use LibModels\Web\Product\SearchData as WebProduct; @@ -13,7 +13,8 @@ use LibModels\Web\Product\SearchData as WebProduct;
13 * 13 *
14 * @author Administrator 14 * @author Administrator
15 */ 15 */
16 -class BrandsModel { 16 +class BrandsModel
  17 +{
17 18
18 const URL_BRAND_INDEX = '/product/index/brand'; 19 const URL_BRAND_INDEX = '/product/index/brand';
19 20
@@ -28,7 +29,8 @@ class BrandsModel { @@ -28,7 +29,8 @@ class BrandsModel {
28 * @param $options array 29 * @param $options array
29 * @return array 30 * @return array
30 */ 31 */
31 - public static function getBrandSearchData($condition, $options, $domain, $uid, $brandId,$node) { 32 + public static function getBrandSearchData($condition, $options, $domain, $uid, $brandId,$node)
  33 + {
32 // 调用商品搜索接口 34 // 调用商品搜索接口
33 $data = SearchData::searchElasticByCondition($condition); 35 $data = SearchData::searchElasticByCondition($condition);
34 36
@@ -86,7 +88,8 @@ class BrandsModel { @@ -86,7 +88,8 @@ class BrandsModel {
86 * 88 *
87 * @return array 品牌banner条数据 89 * @return array 品牌banner条数据
88 */ 90 */
89 - public static function getBannerByDomain($domain, $brandId, $uid = '') { 91 + public static function getBannerByDomain($domain, $brandId, $uid = '')
  92 + {
90 // 构造品牌主页url 93 // 构造品牌主页url
91 self::$home = Helpers::url('', '', $domain) . self::URL_BRAND_INDEX; 94 self::$home = Helpers::url('', '', $domain) . self::URL_BRAND_INDEX;
92 // 根据品牌Id获取品牌banner图 95 // 根据品牌Id获取品牌banner图
@@ -121,7 +124,8 @@ class BrandsModel { @@ -121,7 +124,8 @@ class BrandsModel {
121 } 124 }
122 125
123 //获取品牌系列数据 126 //获取品牌系列数据
124 - public static function getAdNav($brandId, $status = 1) { 127 + public static function getAdNav($brandId, $status = 1)
  128 + {
125 //调用接口获得数据 129 //调用接口获得数据
126 $advNav = BrandData::getFolderByBrand($brandId, $status); 130 $advNav = BrandData::getFolderByBrand($brandId, $status);
127 $result = array(); 131 $result = array();