Authored by hf

do modify call java api url release env

@@ -18,11 +18,15 @@ class Yohobuy @@ -18,11 +18,15 @@ class Yohobuy
18 { 18 {
19 /* 正式环境 */ 19 /* 正式环境 */
20 20
21 - // const API_URL = 'http://api2.open.yohobuy.com/';  
22 - // const API_URL2 = 'http://api.open.yohobuy.com/';  
23 - // const SERVICE_URL = 'http://service.api.yohobuy.com/';  
24 - // const YOHOBUY_URL = 'http://www.yohobuy.com/';  
25 - // const API_URL_LOGINSESSION = 'http://m1.yohobuy.com/'; 21 +// const API_URL = 'http://api2.open.yohobuy.com/';
  22 +// const API_URL2 = 'http://api.open.yohobuy.com/';
  23 +// const SERVICE_URL = 'http://service.api.yohobuy.com/';
  24 +// const YOHOBUY_URL = 'http://www.yohobuy.com/';
  25 +
  26 +// const API_URL = 'http://apih5.yoho.cn/';
  27 +// const API_URL2 = 'http://apih5.yoho.cn/';
  28 +// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
  29 +// const YOHOBUY_URL = 'http://www.yohobuy.com/';
26 30
27 /* 测试环境 */ 31 /* 测试环境 */
28 const API_URL = 'http://testapi.yoho.cn:28078/'; 32 const API_URL = 'http://testapi.yoho.cn:28078/';
@@ -212,7 +216,6 @@ class Yohobuy @@ -212,7 +216,6 @@ class Yohobuy
212 if (!empty($data)) { 216 if (!empty($data)) {
213 $str = http_build_query($data, null, '&'); 217 $str = http_build_query($data, null, '&');
214 // 新加支持application/x-www-form-urlencoded调用方式 218 // 新加支持application/x-www-form-urlencoded调用方式
215 -  
216 //curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 219 //curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
217 curl_setopt($ch, CURLOPT_POSTFIELDS, $str); 220 curl_setopt($ch, CURLOPT_POSTFIELDS, $str);
218 } 221 }