Selaa lähdekoodia

fix(ThirdParty/AlibabaAgent): 修复子订单号参数格式问题

- 修改 orderEntryIds 参数格式为 JSON 数组字符串格式
- 将原来的数组追加方式改为直接赋值 JSON 格式字符串
shichen 2 kuukautta sitten
vanhempi
commit
b53de14b60
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/services/ThirdParty/AlibabaAgent/OrderService.php

+ 1 - 1
app/services/ThirdParty/AlibabaAgent/OrderService.php

@@ -554,7 +554,7 @@ class OrderService extends AlibabaAgentBaseService
554 554
 
555 555
         // 子订单号
556 556
         if (!empty($params['orderEntryIds'])) {
557
-            $businessParams['orderEntryIds'][] = (string)$params['orderEntryIds'];
557
+            $businessParams['orderEntryIds'] = '[' . (string)$params['orderEntryIds'] . ']';
558 558
         }
559 559
 
560 560
         // 货物状态