Authored by yangyang

修改了order接口路径

... ... @@ -27,7 +27,8 @@ class Yohobuy
const API_URL = 'http://test2.open.yohobuy.com/';
const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
const YOHOBUY_URL = 'http://www.yohobuy.com/';
const API_URL_MYCENTER = 'http://192.168.102.213:8081/yoho-users-web/'; // 我的个人中心接口URL
const YOHOBUY_ORDER = 'http://192.168.102.209:8080/yoho-order/';
const API_URL_MYCENTER = 'http://192.168.102.209:8080/yoho-users-web/'; // 我的个人中心接口URL
const API_URL_SHOPINGCART = 'http://192.168.102.213:8080/api-gateway-web/'; // 我的购物车接口URL
const API_URL_PRODUCTDETAIL = 'http://192.168.102.209:18080/yoho-product/'; // 商品详情页
... ...
... ... @@ -26,17 +26,25 @@ class OrderData
static function getOrderData($type, $page, $limit, $gender, $yh_channel, $uid) {
//构建必传参数
$param = Yohobuy::param();
$param['gender'] = $gender;
$param['limit'] = $limit;
$param['method'] = 'app.SpaceOrders.get';
$param['page'] = $page;
$param['type'] = $type;
$param['uid'] = $uid;
$param['yh_channel'] = $yh_channel;
$param['client_secret'] = Sign::getSign($param);
//调用接口获得数据
return Yohobuy::get(Yohobuy::API_URL, $param);
// $param = Yohobuy::param();
// $param['gender'] = $gender;
// $param['limit'] = $limit;
// $param['method'] = 'app.SpaceOrders.get';
// $param['page'] = $page;
// $param['type'] = $type;
// $param['uid'] = $uid;
// $param['yh_channel'] = $yh_channel;
// $param['client_secret'] = Sign::getSign($param);
// //调用接口获得数据
// return Yohobuy::get(Yohobuy::API_URL, $param);
$param['limit'] = '10';
$param['page'] = 1;
$param['type'] = 1;
$param['uid'] = '12';
$param['iscancel'] = false;
$param['paymentStatus'] = 'Y';
print_r($param);
var_dump(Yohobuy::jsonPost(Yohobuy::YOHOBUY_ORDER.'orderInfo/getOrderList',$param));
}
/*
... ...