From b470bf90db8fccac558d0f10adcc33371c5a6df2 Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Thu, 16 Oct 2025 17:39:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E7=89=88=E6=8F=90=E4=BA=A4=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/ShopInfo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/model/ShopInfo.php b/app/model/ShopInfo.php index f4ade97..2b15852 100644 --- a/app/model/ShopInfo.php +++ b/app/model/ShopInfo.php @@ -20,13 +20,14 @@ class ShopInfo $befor_money = $shop_money['money'] - $money; $db->dec('money', $money); } - $db->update(); + $db->inc('send_total')->inc('month_send_total')->inc('amount_total', $money)->inc('month_amount_total', $money)->update(); // 新增记录 Db::table('sms_shop_money_detail')->insert([ 'shop_id' => $shop_id, 'type' => $type, 'expense' => $money, 'reason' => $reason, + 'create_time' => date('Y-m-d H:i:s'), 'balance' => $befor_money, ]); }