Authored by 周少峰

call test api

@@ -106,8 +106,7 @@ class BindData @@ -106,8 +106,7 @@ class BindData
106 } 106 }
107 $param['client_secret'] = Sign::getSign($param); 107 $param['client_secret'] = Sign::getSign($param);
108 108
109 -// return Yohobuy::get(API_URL, $param);  
110 - return Yohobuy::get('http://devapi.yoho.cn:28078/', $param); 109 + return Yohobuy::get(API_URL, $param);
111 } 110 }
112 111
113 /** 112 /**
@@ -133,8 +132,7 @@ class BindData @@ -133,8 +132,7 @@ class BindData
133 } 132 }
134 $param['client_secret'] = Sign::getSign($param); 133 $param['client_secret'] = Sign::getSign($param);
135 134
136 -// return Yohobuy::get(API_URL, $param);  
137 - return Yohobuy::get('http://devapi.yoho.cn:28078/', $param); 135 + return Yohobuy::get(API_URL, $param);
138 } 136 }
139 137
140 /** 138 /**
@@ -249,7 +249,7 @@ class BindController extends AbstractAction @@ -249,7 +249,7 @@ class BindController extends AbstractAction
249 } 249 }
250 //$shoppingKey用于购物车信息同步 250 //$shoppingKey用于购物车信息同步
251 $shoppingKey = Helpers::getShoppingKeyByCookie(); 251 $shoppingKey = Helpers::getShoppingKeyByCookie();
252 - $res = BindData::bindMobile($openId, $sourceType, $phoneNum, $areaCode, $password, $shoppingKey); 252 + $res = BindData::bindMobile($openId, $sourceType, $phoneNum, $areaCode, $password, '', $shoppingKey);
253 if (!isset($res['code'])) { 253 if (!isset($res['code'])) {
254 break; 254 break;
255 } 255 }