This commit is contained in:
aozhiwei 2024-08-05 14:08:23 +08:00
parent ef70986256
commit f693eee582
2 changed files with 1 additions and 4 deletions

View File

@ -42,7 +42,6 @@ func (ea *RechargeApi) RechargeList(c *gin.Context) {
} }
func (this *RechargeApi) Buy(c *gin.Context) { func (this *RechargeApi) Buy(c *gin.Context) {
accountId := c.MustGet("open_id").(string)
passportAddress := c.MustGet("account_address").(string) passportAddress := c.MustGet("account_address").(string)
reqJson := struct { reqJson := struct {
NetId int32 `json:"net_id"` NetId int32 `json:"net_id"`
@ -125,7 +124,6 @@ func (this *RechargeApi) Buy(c *gin.Context) {
return return
} }
if !service.AddRechargeOrder( if !service.AddRechargeOrder(
accountId,
orderId, orderId,
q5.ToString(shortOrderId), q5.ToString(shortOrderId),
reqJson.NetId, reqJson.NetId,

View File

@ -6,7 +6,7 @@ import (
"main/constant" "main/constant"
) )
func AddRechargeOrder(accountId string, orderId string, shortOrderId string, func AddRechargeOrder(orderId string, shortOrderId string,
netId int32, accountAddress string, passportAddress string, netId int32, accountAddress string, passportAddress string,
currencyAddress string, currencyName string, itemId int32, itemNum int32, currencyAddress string, currencyName string, itemId int32, itemNum int32,
price string, diamond int64) bool { price string, diamond int64) bool {
@ -21,7 +21,6 @@ func AddRechargeOrder(accountId string, orderId string, shortOrderId string,
[][]string{ [][]string{
}, },
[][]string{ [][]string{
{"account_id", accountId},
{"order_id", orderId}, {"order_id", orderId},
{"short_order_id", shortOrderId}, {"short_order_id", shortOrderId},
{"net_id", q5.ToString(netId)}, {"net_id", q5.ToString(netId)},