From b07d38698de3d64b62b6431bfda3b606370bbce7 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 23 May 2024 15:57:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86OpurchaseclassLogic?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E4=B8=80=E4=B8=AA=E9=94=99=E8=AF=AF=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=86=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/operation/OpurchaseclassLogic.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/admin/logic/operation/OpurchaseclassLogic.php b/app/admin/logic/operation/OpurchaseclassLogic.php index 2f7bf7b..79c7a4c 100644 --- a/app/admin/logic/operation/OpurchaseclassLogic.php +++ b/app/admin/logic/operation/OpurchaseclassLogic.php @@ -202,7 +202,7 @@ class OpurchaseclassLogic extends BaseLogic $time=strtotime(date('Y-m-d',time())); foreach ($supplier_arr as $k => $v) { $goods_offer[] = [ - 'supplier_id' => $v['id'], + 'supplier_id' => $v, 'goods_id' => $goods['goods'], 'order_id' => $goods['pid'], 'price' => 0, @@ -224,7 +224,6 @@ class OpurchaseclassLogic extends BaseLogic return $goods_offer; } } - } else { } } catch (\Exception $e) { self::setError($e->getMessage());