1
This commit is contained in:
parent
6950221dc5
commit
5cd5f3be8e
@ -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:支付失败',
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user