添加支付宝和微信充值功能,重构交易处理逻辑,优化资源创建与支付链接生成
This commit is contained in:
@@ -706,6 +706,7 @@ create table trade (
|
||||
payment decimal(12, 2) not null default 0,
|
||||
method int not null,
|
||||
status int not null default 0,
|
||||
pay_url text,
|
||||
paid_at timestamp,
|
||||
cancel_at timestamp,
|
||||
created_at timestamp default current_timestamp,
|
||||
@@ -731,6 +732,7 @@ comment on column trade.amount is '订单总金额';
|
||||
comment on column trade.payment is '支付金额';
|
||||
comment on column trade.method is '支付方式:1-支付宝,2-微信';
|
||||
comment on column trade.status is '订单状态:0-待支付,1-已支付,2-已取消,3-已退款';
|
||||
comment on column trade.pay_url is '支付链接';
|
||||
comment on column trade.paid_at is '支付时间';
|
||||
comment on column trade.cancel_at is '取消时间';
|
||||
comment on column trade.created_at is '创建时间';
|
||||
|
||||
Reference in New Issue
Block a user