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