diff --git a/app/api/model/Order.php b/app/api/model/Order.php index 184a6b78..455275b3 100644 --- a/app/api/model/Order.php +++ b/app/api/model/Order.php @@ -123,7 +123,7 @@ class Order extends OrderModel $list = $query->paginate(15); //这边后面改成多商户的话需要根据storeid去获取信息 $service = new StoreService; - $info = $service->data()['storeInfo']->toArray(); + $info = $service->data(); if (!empty($info['storeInfo'])) { $info = $info['storeInfo']->toArray(); foreach ($list['data'] as &$v) {