From 575280f4959049b8c89e5443af5c54271065a5e7 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 25 May 2024 17:15:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=20OpurchaseclassLogi?= =?UTF-8?q?c.php=20=E4=B8=AD=E7=9A=84=E4=BB=B7=E6=A0=BC=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E5=92=8C=E4=BE=9B=E5=BA=94=E5=95=86=E4=BD=99=E9=A2=9D=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/operation/OpurchaseclassLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/logic/operation/OpurchaseclassLogic.php b/app/admin/logic/operation/OpurchaseclassLogic.php index 562e05d..a53d1c8 100644 --- a/app/admin/logic/operation/OpurchaseclassLogic.php +++ b/app/admin/logic/operation/OpurchaseclassLogic.php @@ -257,7 +257,7 @@ class OpurchaseclassLogic extends BaseLogic $price=0; if ($nums != 0) { $price = bcmul($find['price'], $nums, 2); - Supplier::where('id', $id)->inc('mer_money', $price)->update(); + Supplier::where('id', $find['supplier_id'])->inc('mer_money', $price)->update(); } $number=Opurchaseclass::where('id',$find['order_id'])->value('number'); $time=time();