From 9879d074aef64efcb3fcc5bc97f73b640b58f24f Mon Sep 17 00:00:00 2001 From: lqmac Date: Sun, 22 Oct 2023 11:05:48 +0800 Subject: [PATCH] fix bug --- application/api/controller/Order.php | 2 ++ 1 file changed, 2 insertions(+) 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); }