Browse Source

fix:验收格式

super-yimizi 1 month ago
parent
commit
8e08372591
1 changed files with 5 additions and 0 deletions
  1. 5 0
      application/api/controller/Order.php

+ 5 - 0
application/api/controller/Order.php

@@ -157,6 +157,11 @@ class Order extends Base
         // $order->hidden(explode(',', 'method,transactionid,updatetime,deletetime'));
         // $order->hidden(explode(',', 'method,transactionid,updatetime,deletetime'));
         // $order->expiretime = $order->expiretime - time();
         // $order->expiretime = $order->expiretime - time();
         $order->order_status_text = OrderEnum::STATUS_TEXT_MAP[$order->order_status];
         $order->order_status_text = OrderEnum::STATUS_TEXT_MAP[$order->order_status];
+
+        // 处理商品的 发货信息
+        foreach ($order->order_goods as $item) {
+            $item->express_image = json_decode($item->express_image, true);
+        }
         $this->success('', $order);
         $this->success('', $order);
     }
     }