From 5cd5f3be8ea445cc25c4029f1f3bd5494fa6e842 Mon Sep 17 00:00:00 2001 From: yangduo Date: Tue, 31 Dec 2024 14:47:54 +0800 Subject: [PATCH] 1 --- database/paydb.sql | 2 +- server/payserver/api/v1/ingame/ingame.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/paydb.sql b/database/paydb.sql index 202a901..e40c515 100644 --- a/database/paydb.sql +++ b/database/paydb.sql @@ -55,7 +55,7 @@ CREATE TABLE `t_order` ( `sp_orderid` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '平台的订单id', `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_pay_result` int(11) NOT NULL DEFAULT '0' COMMENT '0: 未确认 1: 支付成功 -1:支付失败', diff --git a/server/payserver/api/v1/ingame/ingame.go b/server/payserver/api/v1/ingame/ingame.go index 30b8bcb..023260c 100644 --- a/server/payserver/api/v1/ingame/ingame.go +++ b/server/payserver/api/v1/ingame/ingame.go @@ -164,7 +164,7 @@ func (this *InGameApi) PayDone(c *gin.Context) { errcode = service.Wxpay.QueryPay(openid, gameid, userip, sessionkey, int32(balance), orderModel.OrderId) if errcode == constant.WX_ERRCODE_OK { status = 1 - orderModel.Status = 3 + orderModel.Status = 2 orderModel.UpdateFields([]string{"status"}) rspObj.Diamond = balance