模版提交修改

This commit is contained in:
ASUS 2025-10-16 17:39:17 +08:00
parent 9e90e73bb9
commit b470bf90db
1 changed files with 2 additions and 1 deletions

View File

@ -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,
]);
}