This commit is contained in:
yangduo 2024-12-31 14:47:54 +08:00
parent 6950221dc5
commit 5cd5f3be8e
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ CREATE TABLE `t_order` (
`sp_orderid` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '平台的订单id', `sp_orderid` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '平台的订单id',
`sp_amount` int(11) NOT NULL DEFAULT '0' COMMENT 'sp_amount', `sp_amount` int(11) NOT NULL DEFAULT '0' COMMENT 'sp_amount',
`sp_others` int(11) NOT NULL DEFAULT '0' COMMENT 'sp_others', `sp_others` int(11) NOT NULL DEFAULT '0' COMMENT '补单金额',
`sp_confirmtime` int(11) NOT NULL DEFAULT '0' COMMENT '平台确认时间', `sp_confirmtime` int(11) NOT NULL DEFAULT '0' COMMENT '平台确认时间',
`sp_pay_result` int(11) NOT NULL DEFAULT '0' COMMENT '0: 未确认 1: 支付成功 -1:支付失败', `sp_pay_result` int(11) NOT NULL DEFAULT '0' COMMENT '0: 未确认 1: 支付成功 -1:支付失败',

View File

@ -164,7 +164,7 @@ func (this *InGameApi) PayDone(c *gin.Context) {
errcode = service.Wxpay.QueryPay(openid, gameid, userip, sessionkey, int32(balance), orderModel.OrderId) errcode = service.Wxpay.QueryPay(openid, gameid, userip, sessionkey, int32(balance), orderModel.OrderId)
if errcode == constant.WX_ERRCODE_OK { if errcode == constant.WX_ERRCODE_OK {
status = 1 status = 1
orderModel.Status = 3 orderModel.Status = 2
orderModel.UpdateFields([]string{"status"}) orderModel.UpdateFields([]string{"status"})
rspObj.Diamond = balance rspObj.Diamond = balance