1
This commit is contained in:
parent
e97a14e3fc
commit
40d12e1a30
@ -86,7 +86,7 @@ func (this *RechargeApi) Buy(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
this.internalBuy(c, reqJson.NetId, reqJson.GoodsId, reqJson.GoodsNum,
|
||||
reqJson.AccountAddress, passportAddress, "")
|
||||
reqJson.AccountAddress, passportAddress, "", reqJson.CurrencyAddress)
|
||||
}
|
||||
|
||||
func (this *RechargeApi) BuyWithEmail(c *gin.Context) {
|
||||
@ -108,12 +108,12 @@ func (this *RechargeApi) BuyWithEmail(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
this.internalBuy(c, reqJson.NetId, reqJson.GoodsId, reqJson.GoodsNum,
|
||||
reqJson.AccountAddress, passportAddress, reqJson.Email)
|
||||
reqJson.AccountAddress, passportAddress, reqJson.Email, reqJson.CurrencyAddress)
|
||||
}
|
||||
|
||||
func (this *RechargeApi) internalBuy(c *gin.Context,
|
||||
netId int32, goodsId int32, goodsNum int32, accountAddress string, passportAddress string,
|
||||
email string) {
|
||||
email string, currencyAddress string) {
|
||||
currencyMeta := mt.Table.Currency.GetByNetIdAddress(netId, "")
|
||||
if currencyMeta == nil {
|
||||
f5.RspErr(c, 2, "server internal error")
|
||||
|
Loading…
x
Reference in New Issue
Block a user