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){