|
@@ -35,20 +35,21 @@ class Kuaishou extends Base
|
|
|
return isset($s['access_token']) ? $s['access_token'] : '';
|
|
|
}
|
|
|
|
|
|
- public function getCode()
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
|
|
|
- // api请求
|
|
|
+ /**
|
|
|
+ * @title 获取订单详情
|
|
|
+ * @desc 获取商家视角的订单详情
|
|
|
+ * @author qc
|
|
|
+ * @url /api/Kuaishou/getOrderDetail
|
|
|
+ * @method GET
|
|
|
+ * @header name:Authorization require:1 desc:Token
|
|
|
+ * @param name:oid type:int request:1 default:0 desc:id
|
|
|
+ */
|
|
|
public function getOrderDetail()
|
|
|
{
|
|
|
- //2315900153213958
|
|
|
- //2314700285800114
|
|
|
$apiType = "open.order.detail";
|
|
|
- // $apiType = "open.seller.order.fee.detail";
|
|
|
$method = 'get';
|
|
|
- $param = ['orderId'=>input('oid')];
|
|
|
+ $param = ['oid'=>input('oid')];
|
|
|
$arr['appkey'] = $this->appKey;
|
|
|
$arr['version'] = 1;
|
|
|
$arr['access_token'] = $this->access_token;
|
|
@@ -68,6 +69,15 @@ class Kuaishou extends Base
|
|
|
'api'=>$apiType ]);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @title 获取订单费用详情
|
|
|
+ * @desc 获取订单费用详情
|
|
|
+ * @author qc
|
|
|
+ * @url /api/Kuaishou/getOrderFee
|
|
|
+ * @method GET
|
|
|
+ * @header name:Authorization require:1 desc:Token
|
|
|
+ * @param name:oid type:int request:1 default:0 desc:id
|
|
|
+ */
|
|
|
public function getOrderFee()
|
|
|
{
|
|
|
$apiType = "open.seller.order.fee.detail";
|
|
@@ -92,6 +102,16 @@ class Kuaishou extends Base
|
|
|
'api'=>$apiType ]);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @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
|
|
|
+ */
|
|
|
// 分销订单
|
|
|
public function getFxInfo()
|
|
|
{
|
|
@@ -117,6 +137,8 @@ class Kuaishou extends Base
|
|
|
'api'=>$apiType ]);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
public function getOrderList()
|
|
|
{
|
|
|
$apiType = "open.order.detail";
|
|
@@ -147,10 +169,6 @@ class Kuaishou extends Base
|
|
|
return json_decode($s, true);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
public function getSign($params, $key) {
|
|
|
$unSignParaString = $this->formatQueryParaMap($params, false);
|
|
|
$signStr = (md5($unSignParaString . "&signSecret=" . $this->signSecret));
|