Jelajahi Sumber

期望返回的数据有bug,修复

shizhongqi 7 bulan lalu
induk
melakukan
6ffa853503

+ 1 - 1
app-ghs/controllers/DeliveryController.php

@@ -337,7 +337,7 @@ class DeliveryController extends BaseController
         $ret = $ds->createOrder($ghsOrder, 'xhGhsOrder', $this->shopId, $params);
         $ret = $ds->createOrder($ghsOrder, 'xhGhsOrder', $this->shopId, $params);
 
 
         if (isset($ret['code']) && $ret['code'] == 0) {
         if (isset($ret['code']) && $ret['code'] == 0) {
-            $gdo = GhsDeliveryOrderClass::getByCondition(['mainId' => $this->mainId, 'orderId' => $ret['data']['orderId'], 'orderStatus!=' => -1]);
+            $gdo = GhsDeliveryOrderClass::getByCondition(['mainId' => $this->mainId, 'orderId' => $ret['data']['orderId'], 'orderStatus!=' => -1], true);
             if (empty($gdo)) {
             if (empty($gdo)) {
                 $data = [
                 $data = [
                     'mainId' => $this->mainId,
                     'mainId' => $this->mainId,

+ 1 - 1
biz-ghs/express/classes/GhsDeliveryOrderClass.php

@@ -91,7 +91,7 @@ class GhsDeliveryOrderClass extends BaseClass
             $ret = $ds->createOrder($ghsOrder, 'xhGhsOrder', $shopId, $params);
             $ret = $ds->createOrder($ghsOrder, 'xhGhsOrder', $shopId, $params);
 
 
             if (isset($ret['code']) && $ret['code'] == 0) {
             if (isset($ret['code']) && $ret['code'] == 0) {
-                $gdo = GhsDeliveryOrderClass::getByCondition(['mainId' => $mainId, 'orderId' => $ret['data']['orderId'], 'orderStatus!=' => -1]);
+                $gdo = GhsDeliveryOrderClass::getByCondition(['mainId' => $mainId, 'orderId' => $ret['data']['orderId'], 'orderStatus!=' => -1], true);
                 if (empty($gdo)) {
                 if (empty($gdo)) {
                     $data = [
                     $data = [
                         'mainId' => $mainId,
                         'mainId' => $mainId,