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