Explorar o código

补充 address

萤火科技 hai 1 ano
pai
achega
80b7194989
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);