1
This commit is contained in:
parent
ef70986256
commit
f693eee582
@ -42,7 +42,6 @@ func (ea *RechargeApi) RechargeList(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (this *RechargeApi) Buy(c *gin.Context) {
|
||||
accountId := c.MustGet("open_id").(string)
|
||||
passportAddress := c.MustGet("account_address").(string)
|
||||
reqJson := struct {
|
||||
NetId int32 `json:"net_id"`
|
||||
@ -125,7 +124,6 @@ func (this *RechargeApi) Buy(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
if !service.AddRechargeOrder(
|
||||
accountId,
|
||||
orderId,
|
||||
q5.ToString(shortOrderId),
|
||||
reqJson.NetId,
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"main/constant"
|
||||
)
|
||||
|
||||
func AddRechargeOrder(accountId string, orderId string, shortOrderId string,
|
||||
func AddRechargeOrder(orderId string, shortOrderId string,
|
||||
netId int32, accountAddress string, passportAddress string,
|
||||
currencyAddress string, currencyName string, itemId int32, itemNum int32,
|
||||
price string, diamond int64) bool {
|
||||
@ -21,7 +21,6 @@ func AddRechargeOrder(accountId string, orderId string, shortOrderId string,
|
||||
[][]string{
|
||||
},
|
||||
[][]string{
|
||||
{"account_id", accountId},
|
||||
{"order_id", orderId},
|
||||
{"short_order_id", shortOrderId},
|
||||
{"net_id", q5.ToString(netId)},
|
||||
|
Loading…
x
Reference in New Issue
Block a user