|
@@ -25,7 +25,6 @@ class Kuaishou extends Base
|
|
|
|
|
|
}
|
|
|
|
|
|
- //
|
|
|
public function getAccessToken()
|
|
|
{
|
|
|
// $url = $this->serverHost . "oauth2/access_token?app_id={$this->appKey}&app_secret={$this->appSecret}&code={$this->code}&grant_type=authorization_code";
|
|
@@ -35,7 +34,6 @@ class Kuaishou extends Base
|
|
|
return isset($s['access_token']) ? $s['access_token'] : '';
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @title 获取订单详情【商家自己的】
|
|
|
* @desc 获取商家视角的订单详情
|
|
@@ -102,7 +100,6 @@ class Kuaishou extends Base
|
|
|
'api'=>$apiType ]);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @title 获取分销订单详情
|
|
|
* @desc 获取分销订单详情
|
|
@@ -137,19 +134,26 @@ class Kuaishou extends Base
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @title 获取订单列表
|
|
|
+ * @title 获取卖家对应买家的订单列表
|
|
|
* @desc 获取分销订单详情
|
|
|
* @author qc
|
|
|
* @url /api/Kuaishou/getFxInfo
|
|
|
* @method GET
|
|
|
* @header name:Authorization require:1 desc:Token
|
|
|
- * @param name:oid type:int request:1 default:0 desc:id
|
|
|
+ * @param name:buyerOpenId type:string request:1 default:0 desc:buyerOpenId
|
|
|
+ * @param name:cursor type:string request:1 default:0 desc:游标
|
|
|
+ * @param name:orderStatus type:int request:1 default:0 desc:[0,10,30,40,50,70,80]
|
|
|
*/
|
|
|
public function getOrderList()
|
|
|
{
|
|
|
- $apiType = "open.order.detail";
|
|
|
+ $apiType = "open.order.buyer.order.list";
|
|
|
$method = 'get';
|
|
|
- $param = ['orderId'=>input('oid')];
|
|
|
+ $param = [
|
|
|
+ 'buyerOpenId'=>input('buyerOpenId'),
|
|
|
+ 'cursor'=>input('cursor',0),
|
|
|
+ 'limit'=> 20,
|
|
|
+ 'orderStatus'=> input('orderStatus',0),
|
|
|
+ ];
|
|
|
$arr['appkey'] = $this->appKey;
|
|
|
$arr['version'] = 1;
|
|
|
$arr['access_token'] = $this->access_token;
|