mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 02:59:10 +08:00
update
This commit is contained in:
parent
7639f07b83
commit
20be5c3182
@ -138,7 +138,7 @@ class OrderController extends Controller
|
|||||||
if (!CouponLog::create([
|
if (!CouponLog::create([
|
||||||
'coupon_id' => $coupon->id,
|
'coupon_id' => $coupon->id,
|
||||||
'user_id' => $order->user_id,
|
'user_id' => $order->user_id,
|
||||||
'order_id' => $order->id,
|
'order_trade_no' => $order->trade_no,
|
||||||
'total_amount' => $order->total_amount,
|
'total_amount' => $order->total_amount,
|
||||||
'discount_amount' => $order->discount_amount
|
'discount_amount' => $order->discount_amount
|
||||||
])) {
|
])) {
|
||||||
|
@ -106,9 +106,9 @@ CREATE TABLE `v2_coupon` (
|
|||||||
|
|
||||||
CREATE TABLE `v2_coupon_log` (
|
CREATE TABLE `v2_coupon_log` (
|
||||||
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
`coupon_id` int(11) NOT NULL,
|
|
||||||
`user_id` int(11) NOT NULL,
|
`user_id` int(11) NOT NULL,
|
||||||
`order_id` int(11) NOT NULL,
|
`coupon_id` int(11) NOT NULL,
|
||||||
|
`order_trade_no` char(32) NOT NULL,
|
||||||
`total_amount` int(11) NOT NULL,
|
`total_amount` int(11) NOT NULL,
|
||||||
`discount_amount` int(11) NOT NULL,
|
`discount_amount` int(11) NOT NULL,
|
||||||
`created_at` int(11) NOT NULL,
|
`created_at` int(11) NOT NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user