From ed97ed62a4b2c9d0deff954105305154e514332d Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sun, 13 Oct 2024 16:00:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=87=87=E8=B4=AD=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E6=8A=A5=E4=BB=B7=E6=94=AF=E4=BB=98=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在采购产品报价逻辑和控制器中添加支付类型字段,并设置买家确认状态为1。 --- .../logic/purchase_product_offer/PurchaseProductOfferLogic.php | 2 ++ .../purchase_product_offer/PurchaseProductOfferController.php | 1 + 2 files changed, 3 insertions(+) diff --git a/app/admin/logic/purchase_product_offer/PurchaseProductOfferLogic.php b/app/admin/logic/purchase_product_offer/PurchaseProductOfferLogic.php index a4d78e86f..4744192ff 100644 --- a/app/admin/logic/purchase_product_offer/PurchaseProductOfferLogic.php +++ b/app/admin/logic/purchase_product_offer/PurchaseProductOfferLogic.php @@ -107,6 +107,8 @@ class PurchaseProductOfferLogic extends BaseLogic 'price' => $params['purchase'], 'outbound_price' => $params['outbound_price'], 'total_price' => $params['total_price'], + 'pay_type' => $params['pay_type']??0, + 'buyer_confirm' => 1, ]); // $find=BeforehandOrderCartInfo::where(['bhoid'=>$params['bhoid'],'product_id'=>$offer['product_id']])->find(); // if($find){ diff --git a/app/api/controller/purchase_product_offer/PurchaseProductOfferController.php b/app/api/controller/purchase_product_offer/PurchaseProductOfferController.php index d28cdde9e..67f07da1f 100644 --- a/app/api/controller/purchase_product_offer/PurchaseProductOfferController.php +++ b/app/api/controller/purchase_product_offer/PurchaseProductOfferController.php @@ -41,6 +41,7 @@ class PurchaseProductOfferController extends BaseApiController 'outbound_price'=>$params['outbound_price'], 'total_price'=>$params['total_price'], 'buyer_confirm'=>1, + 'pay_type'=>$params['pay_type']??0, ]; $res=PurchaseProductOffer::where('id',$params['id'])->where('buyer_id',$this->userId)->update($data); if($res){