Authored by Rock Zhang

修改调用的接口地址

@@ -24,8 +24,8 @@ class Yohobuy @@ -24,8 +24,8 @@ class Yohobuy
24 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 24 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
25 25
26 /* 测试环境 */ 26 /* 测试环境 */
27 - const API_URL = 'http://devapi.yoho.cn:58078/';  
28 - const SERVICE_URL = 'http://devservice.yoho.cn:58077/'; 27 + const API_URL = 'http://test2.open.yohobuy.com/';
  28 + const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
29 const YOHOBUY_URL = 'http://www.yohobuy.com/'; 29 const YOHOBUY_URL = 'http://www.yohobuy.com/';
30 const YOHOBUY_ORDER = 'http://192.168.102.205:8084/order/'; //我的订单 30 const YOHOBUY_ORDER = 'http://192.168.102.205:8084/order/'; //我的订单
31 const API_URL_MYCENTER = 'http://192.168.102.205:8081/users/'; // 我的个人中心接口URL 31 const API_URL_MYCENTER = 'http://192.168.102.205:8081/users/'; // 我的个人中心接口URL
@@ -177,7 +177,7 @@ class UserModel @@ -177,7 +177,7 @@ class UserModel
177 foreach ($favProduct['data']['product_list'] as $val) { 177 foreach ($favProduct['data']['product_list'] as $val) {
178 $product = array(); 178 $product = array();
179 $product['fav_id'] = $val['product_id']; 179 $product['fav_id'] = $val['product_id'];
180 - $product['link'] = Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html'); 180 + $product['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : '';
181 $product['imgUrl'] = Helpers::getImageUrl($val['image'], 447, 596);; 181 $product['imgUrl'] = Helpers::getImageUrl($val['image'], 447, 596);;
182 $product['title'] = $val['product_name']; 182 $product['title'] = $val['product_name'];
183 $product['price'] = !empty($val['market_price']) ? '¥'.$val['market_price'] . '.00' : 0; 183 $product['price'] = !empty($val['market_price']) ? '¥'.$val['market_price'] . '.00' : 0;
@@ -226,7 +226,7 @@ class UserModel @@ -226,7 +226,7 @@ class UserModel
226 foreach ($favBrand['data']['brand_list'] as $val) { 226 foreach ($favBrand['data']['brand_list'] as $val) {
227 $brand = array(); 227 $brand = array();
228 $brand['id'] = $val['brand_id']; 228 $brand['id'] = $val['brand_id'];
229 - $brand['brandImg'] = !empty($val['brand_ico']) ? Images::getImageUrl($val['brand_ico'], 235, 314) : ''; 229 + $brand['brandImg'] = !empty($val['brand_ico']) ? Images::getImageUrl($val['brand_ico'], 47, 47) : '';
230 $brand['brandName'] = $val['brand_name']; 230 $brand['brandName'] = $val['brand_name'];
231 $brand['update'] = $val['new_product_num']; 231 $brand['update'] = $val['new_product_num'];
232 $brand['discount'] = $val['product_discount_num']; 232 $brand['discount'] = $val['product_discount_num'];