1
This commit is contained in:
parent
0aad8811e2
commit
02698d9838
@ -191,6 +191,7 @@ func (this *RechargeApi) internalBuy(c *gin.Context,
|
||||
}{}
|
||||
var itemNum int32 = goodsNum
|
||||
var diamond int64 = q5.ToInt64(goodsMeta.GetDiamond()) * int64(itemNum)
|
||||
var presentDiamond int64
|
||||
url := fmt.Sprintf("%s/webapp/index.php", mt.Table.Web3SignCluster.RandElement().GetUrl())
|
||||
f5.GetHttpCliMgr().SendGoStyleRequest(
|
||||
url,
|
||||
@ -218,8 +219,9 @@ func (this *RechargeApi) internalBuy(c *gin.Context,
|
||||
currencyContractMeta.GetAddress(),
|
||||
goodsMeta.GetId(),
|
||||
itemNum,
|
||||
q5.ToString(price),
|
||||
price,
|
||||
diamond,
|
||||
presentDiamond,
|
||||
email) {
|
||||
f5.RspErr(c, 500, "server internal error")
|
||||
return
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
func AddRechargeOrder(orderId string, shortOrderId string,
|
||||
netId int32, accountAddress string, passportAddress string,
|
||||
currencyAddress string, currencyName string, itemId int32, itemNum int32,
|
||||
price string, diamond int64, email string) bool {
|
||||
price int64, diamond int64, presentDiamond int64, email string) bool {
|
||||
ok := false
|
||||
nowTime := f5.GetApp().GetRealSeconds()
|
||||
fields := [][]string{
|
||||
@ -22,8 +22,9 @@ func AddRechargeOrder(orderId string, shortOrderId string,
|
||||
{"currency_address", currencyAddress},
|
||||
{"item_id", q5.ToString(itemId)},
|
||||
{"item_num", q5.ToString(itemNum)},
|
||||
{"price", price},
|
||||
{"price", q5.ToString(price)},
|
||||
{"diamond", q5.ToString(diamond)},
|
||||
{"present_diamond", q5.ToString(presentDiamond)},
|
||||
{"createtime", q5.ToString(nowTime)},
|
||||
{"modifytime", q5.ToString(nowTime)},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user