1
This commit is contained in:
parent
2d721e214e
commit
f9a569a366
@ -105,6 +105,8 @@ func (this *RechargeApi) Buy(c *gin.Context) {
|
||||
ErrMsg string `json:"errmsg"`
|
||||
Calls []jccommon.ContractCall `json:"calls"`
|
||||
}{}
|
||||
var itemNum int32 = 1
|
||||
var diamond int64 = 1
|
||||
url := fmt.Sprintf("%s/webapp/index.php", mt.Table.Web3SignCluster.RandElement().GetUrl())
|
||||
f5.GetHttpCliMgr().SendGoStyleRequest(
|
||||
url,
|
||||
@ -132,9 +134,9 @@ func (this *RechargeApi) Buy(c *gin.Context) {
|
||||
currencyMeta.GetName(),
|
||||
currencyMeta.GetAddress(),
|
||||
goodsMeta.GetId(),
|
||||
1,
|
||||
itemNum,
|
||||
price,
|
||||
1) {
|
||||
diamond) {
|
||||
f5.RspErr(c, 500, "server internal error")
|
||||
return
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
func AddRechargeOrder(accountId string, orderId string, shortOrderId string,
|
||||
netId int32, accountAddress string, passportAddress string,
|
||||
currencyAddress string, currencyName string, itemId int32, itemNum int64,
|
||||
currencyAddress string, currencyName string, itemId int32, itemNum int32,
|
||||
price string, diamond int64) bool {
|
||||
ok := false
|
||||
nowTime := f5.GetApp().GetRealSeconds()
|
||||
|
Loading…
x
Reference in New Issue
Block a user