...
|
...
|
@@ -18,11 +18,15 @@ class Yohobuy |
|
|
{
|
|
|
/* 正式环境 */
|
|
|
|
|
|
// const API_URL = 'http://api2.open.yohobuy.com/';
|
|
|
// const API_URL2 = 'http://api.open.yohobuy.com/';
|
|
|
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
|
|
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
|
|
// const API_URL_LOGINSESSION = 'http://m1.yohobuy.com/';
|
|
|
// const API_URL = 'http://api2.open.yohobuy.com/';
|
|
|
// const API_URL2 = 'http://api.open.yohobuy.com/';
|
|
|
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
|
|
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
|
|
|
|
|
// const API_URL = 'http://apih5.yoho.cn/';
|
|
|
// const API_URL2 = 'http://apih5.yoho.cn/';
|
|
|
// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
|
|
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
|
|
|
|
|
/* 测试环境 */
|
|
|
const API_URL = 'http://testapi.yoho.cn:28078/';
|
...
|
...
|
@@ -212,7 +216,6 @@ class Yohobuy |
|
|
if (!empty($data)) {
|
|
|
$str = http_build_query($data, null, '&');
|
|
|
// 新加支持application/x-www-form-urlencoded调用方式
|
|
|
|
|
|
//curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $str);
|
|
|
}
|
...
|
...
|
|