Authored by hf

code review by fei.hong: do merge yang.yang and shaofeng.zhou fixes bugs codes

@@ -67,7 +67,7 @@ class BrandData @@ -67,7 +67,7 @@ class BrandData
67 */ 67 */
68 public static function getBrandLogo($brandId) 68 public static function getBrandLogo($brandId)
69 { 69 {
70 - return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URL_BRAND_LOGO, 'getBrandByids', array($brandId)); 70 + return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URL_BRAND_LOGO, 'getBrandByids', array($brandId), 600);
71 } 71 }
72 72
73 /** 73 /**
@@ -153,6 +153,6 @@ class BrandData @@ -153,6 +153,6 @@ class BrandData
153 if($isOnlyUrl) { 153 if($isOnlyUrl) {
154 return Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param); 154 return Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
155 } 155 }
156 - return Yohobuy::get(Yohobuy::API_URL, $param); 156 + return Yohobuy::get(Yohobuy::API_URL, $param, 600);
157 } 157 }
158 } 158 }
@@ -20,8 +20,8 @@ class SaleData @@ -20,8 +20,8 @@ class SaleData
20 * @return array 20 * @return array
21 */ 21 */
22 public static function getSpecial($specialsaleId) 22 public static function getSpecial($specialsaleId)
23 - {  
24 - return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URL_SALE_SPECIAL, 'getOneSpecial', array($specialsaleId)); 23 + {
  24 + return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URL_SALE_SPECIAL, 'getOneSpecial', array($specialsaleId), 600);
25 } 25 }
26 26
27 } 27 }