Переглянути джерело

客户端-唯品会-将来去唯品会订单接口升级到2.0

sunxbiao 11 місяців тому
батько
коміт
365ce0180e
1 змінених файлів з 4 додано та 4 видалено
  1. 4 4
      app/controller/api/store/product/Vip.php

+ 4 - 4
app/controller/api/store/product/Vip.php

@@ -50,7 +50,7 @@ class Vip extends BaseController
50 50
      * $params  参数
51 51
      * $request  应用级参数
52 52
      * */
53
-    public function getUrlResult($apiName, $method, $request = [])
53
+    public function getUrlResult($apiName, $method, $request = [], $version = '1.0.0')
54 54
     {
55 55
         if (empty($apiName)) {
56 56
             return false;
@@ -60,7 +60,7 @@ class Vip extends BaseController
60 60
         $requestParams = [
61 61
             'service' => $apiName,
62 62
             'method' => $method,
63
-            'version' => "1.0.0",
63
+            'version' => $version,
64 64
             'format' => 'JSON',
65 65
             'appKey' => "68979f85",
66 66
             'timestamp' => time(),
@@ -805,10 +805,10 @@ class Vip extends BaseController
805 805
             'requestId' => microtime(true) . rand(1000, 9999)
806 806
         ]);
807 807
         $orderLists = [];
808
-        $apiName = 'com.vip.adp.api.open.service.UnionOrderService';
808
+        $apiName = 'com.vip.adp.api.open.service.UnionOrderV2Service';
809 809
         do {
810 810
             $request = ['queryModel' => $queryModel];
811
-            $result = $this->getUrlResult($apiName, "orderList", $request);
811
+            $result = $this->getUrlResult($apiName, "orderList", $request, '2.0.0');
812 812
             log::info("vip===返回订单数据");
813 813
             log::info($result);
814 814
             $lists = $result['result']['orderInfoList'] ?? [];