|
@@ -184,16 +184,16 @@ class ZopOrderService extends ZopBaseService
|
|
|
'pageUrl' => $pageUrl,
|
|
|
'resourceId' => $resourceId,
|
|
|
];
|
|
|
- $autoOrderResult = self::autoNumSync($autoOrderParams, $order);
|
|
|
- if ($autoOrderResult['code'] != 0) {
|
|
|
+ $orderResult = self::autoNumSync($autoOrderParams, $order);
|
|
|
+ if ($orderResult['code'] != 0) {
|
|
|
// 写入订单错误信息
|
|
|
- $order->failure_reason = $autoOrderResult['message'];
|
|
|
+ $order->failure_reason = $orderResult['message'];
|
|
|
$order->save();
|
|
|
|
|
|
- return $autoOrderResult;
|
|
|
+ return $orderResult;
|
|
|
}
|
|
|
|
|
|
- $no = $autoOrderResult['preNumber'];
|
|
|
+ $no = $orderResult['data']['preNumber'] ?? '';
|
|
|
$order->no = $no;
|
|
|
$order->save();
|
|
|
} else {
|
|
@@ -663,9 +663,11 @@ class ZopOrderService extends ZopBaseService
|
|
|
'updateTime',
|
|
|
'orderTotalFee',
|
|
|
'pageUrl',
|
|
|
- 'resourceId'
|
|
|
+ 'resourceId',
|
|
|
]);
|
|
|
$data['launchPlatform'] = self::getRandLaunchPlatform();
|
|
|
+ // 额外加
|
|
|
+ $data['contractId'] = '91200266';
|
|
|
|
|
|
$result = self::send($url, $data, $order);
|
|
|
if (empty($result)) {
|