Authored by yangyang

修改了order接口路径

@@ -27,7 +27,8 @@ class Yohobuy @@ -27,7 +27,8 @@ class Yohobuy
27 const API_URL = 'http://test2.open.yohobuy.com/'; 27 const API_URL = 'http://test2.open.yohobuy.com/';
28 const SERVICE_URL = 'http://test.service.api.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 API_URL_MYCENTER = 'http://192.168.102.213:8081/yoho-users-web/'; // 我的个人中心接口URL 30 + const YOHOBUY_ORDER = 'http://192.168.102.209:8080/yoho-order/';
  31 + const API_URL_MYCENTER = 'http://192.168.102.209:8080/yoho-users-web/'; // 我的个人中心接口URL
31 const API_URL_SHOPINGCART = 'http://192.168.102.213:8080/api-gateway-web/'; // 我的购物车接口URL 32 const API_URL_SHOPINGCART = 'http://192.168.102.213:8080/api-gateway-web/'; // 我的购物车接口URL
32 const API_URL_PRODUCTDETAIL = 'http://192.168.102.209:18080/yoho-product/'; // 商品详情页 33 const API_URL_PRODUCTDETAIL = 'http://192.168.102.209:18080/yoho-product/'; // 商品详情页
33 34
@@ -26,17 +26,25 @@ class OrderData @@ -26,17 +26,25 @@ class OrderData
26 26
27 static function getOrderData($type, $page, $limit, $gender, $yh_channel, $uid) { 27 static function getOrderData($type, $page, $limit, $gender, $yh_channel, $uid) {
28 //构建必传参数 28 //构建必传参数
29 - $param = Yohobuy::param();  
30 - $param['gender'] = $gender;  
31 - $param['limit'] = $limit;  
32 - $param['method'] = 'app.SpaceOrders.get';  
33 - $param['page'] = $page;  
34 - $param['type'] = $type;  
35 - $param['uid'] = $uid;  
36 - $param['yh_channel'] = $yh_channel;  
37 - $param['client_secret'] = Sign::getSign($param);  
38 - //调用接口获得数据  
39 - return Yohobuy::get(Yohobuy::API_URL, $param); 29 +// $param = Yohobuy::param();
  30 +// $param['gender'] = $gender;
  31 +// $param['limit'] = $limit;
  32 +// $param['method'] = 'app.SpaceOrders.get';
  33 +// $param['page'] = $page;
  34 +// $param['type'] = $type;
  35 +// $param['uid'] = $uid;
  36 +// $param['yh_channel'] = $yh_channel;
  37 +// $param['client_secret'] = Sign::getSign($param);
  38 +// //调用接口获得数据
  39 +// return Yohobuy::get(Yohobuy::API_URL, $param);
  40 + $param['limit'] = '10';
  41 + $param['page'] = 1;
  42 + $param['type'] = 1;
  43 + $param['uid'] = '12';
  44 + $param['iscancel'] = false;
  45 + $param['paymentStatus'] = 'Y';
  46 + print_r($param);
  47 + var_dump(Yohobuy::jsonPost(Yohobuy::YOHOBUY_ORDER.'orderInfo/getOrderList',$param));
40 } 48 }
41 49
42 /* 50 /*