Browse Source

补充 address

萤火科技 1 year ago
parent
commit
80b7194989
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/model/Order.php

+ 1 - 1
app/api/model/Order.php

@@ -242,7 +242,7 @@ class Order extends OrderModel
     public static function getUserOrderDetail(int $orderId, bool $onlyCurrentUser = true)
     {
         // 查询订单记录
-        $with = ['goods' => ['image', 'refund'], 'trade', 'delivery.express'];
+        $with = ['goods' => ['image', 'refund'], 'trade', 'delivery.express', 'address'];
         $order = static::getDetail($orderId, $with, $onlyCurrentUser);
         // 该订单是否允许申请售后
         $order['isAllowRefund'] = static::isAllowRefund($order);