...
|
...
|
@@ -147,4 +147,24 @@ class OrderData |
|
|
// 调用接口获得数据
|
|
|
return Yohobuy::post(Yohobuy::API_URL, $param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查看订单详情
|
|
|
*
|
|
|
* @param string $orderCode 订单号
|
|
|
* @param int $uid 用户ID
|
|
|
* @param string $sessionKey 用户会话
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function viewOrderData($orderCode, $uid, $sessionKey)
|
|
|
{
|
|
|
$param = Yohobuy::param();
|
|
|
$param['method'] = 'app.SpaceOrders.info';
|
|
|
$param['order_code'] = $orderCode;
|
|
|
$param['uid'] = $uid;
|
|
|
$param['session_key'] = $sessionKey;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
}
|
|
|
} |
...
|
...
|
|