wanghousheng 10 months ago
parent 05acbdd3da
commit 9e8988acce
  1. 6
      app/api/model/Order.php

@ -471,11 +471,13 @@ class Order extends OrderModel
// 查询订单记录
$order = static::detail($where, $with);
empty($order) && throwError('订单不存在');
//这边后面改成多商户的话需要根据storeid去获取信息
$service = new StoreService;
$info = $service->data();
$order->storeInfo = $info;
if (!empty($info['storeInfo'])) {
$order->storeInfo = $info['storeInfo']->toArray();
}
return $order;
}

Loading…
Cancel
Save