模版提交修改
This commit is contained in:
parent
9e90e73bb9
commit
b470bf90db
|
|
@ -20,13 +20,14 @@ class ShopInfo
|
||||||
$befor_money = $shop_money['money'] - $money;
|
$befor_money = $shop_money['money'] - $money;
|
||||||
$db->dec('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([
|
Db::table('sms_shop_money_detail')->insert([
|
||||||
'shop_id' => $shop_id,
|
'shop_id' => $shop_id,
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
'expense' => $money,
|
'expense' => $money,
|
||||||
'reason' => $reason,
|
'reason' => $reason,
|
||||||
|
'create_time' => date('Y-m-d H:i:s'),
|
||||||
'balance' => $befor_money,
|
'balance' => $befor_money,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue