diff --git a/application/api/controller/Order.php b/application/api/controller/Order.php index 8193951..acc422b 100755 --- a/application/api/controller/Order.php +++ b/application/api/controller/Order.php @@ -411,7 +411,9 @@ class Order extends Api $info['entrusted_ratio'] = Config::get("site.entrusted_ratio"); $info['entrustment_ratio'] = Config::get("site.entrustment_ratio"); $seller = User::where('id', $info['seller_id'])->field(['id', 'username', 'nickname', 'mobile', 'avatar', 'score','sign_image','sign_status','alipay_image','wechat_image','buy_goods_num_per_day','advance_access_num','bank_realname','bank_mobile','bank_no','bank_address','reason','warehouse_id','advance_access_minute','deadline','pid','total_commission_amount','available_commission_amount'])->find(); + $buyer = User::where('id', $info['buyer_id'])->field(['id', 'username', 'nickname', 'mobile', 'avatar', 'score','sign_image','sign_status','alipay_image','wechat_image','buy_goods_num_per_day','advance_access_num','bank_realname','bank_mobile','bank_no','bank_address','reason','warehouse_id','advance_access_minute','deadline','pid','total_commission_amount','available_commission_amount'])->find(); $info['seller'] = $seller; + $info['buyer'] = $buyer; $info['pay_voucher'] = cdnurl($info['pay_voucher'], true); $this->success("succ", $info); }