1
This commit is contained in:
parent
60308cc426
commit
a612e7c39d
@ -122,3 +122,11 @@ const (
|
|||||||
|
|
||||||
BC_CURRENCY_VS_URL = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=USD&ids=immutable-x,usd-coin,immutable-x,ethereum"
|
BC_CURRENCY_VS_URL = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=USD&ids=immutable-x,usd-coin,immutable-x,ethereum"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
TRANS_ID_MAX_FUNC_ID = 9
|
||||||
|
TRANS_ID_MAX_TIME = 999999999
|
||||||
|
TRANS_ID_MAX_SEQ_ID = 9999999
|
||||||
|
TRANS_ID_MIN_LEN = 77
|
||||||
|
TRANS_ID_MAX_LEN = 78
|
||||||
|
)
|
||||||
|
@ -88,3 +88,11 @@ func CalcContributionScore(nfts []*NftStacking) float64 {
|
|||||||
func IsValidSessionId(accountId string, sessionId string) bool {
|
func IsValidSessionId(accountId string, sessionId string) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GenTransId(funcId int8, time int32, seqId int32, params []int64) (string, error) {
|
||||||
|
return "", nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func DecodeTransId(transId string, funcId *int8, time *int32, seqId *int32, params *[]int64) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
@ -58,7 +58,8 @@ func (this *RechargeApi) Buy(c *gin.Context) {
|
|||||||
f5.RspErr(c, 2, "goods id param error")
|
f5.RspErr(c, 2, "goods id param error")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
orderId := q5.ToString(f5.GetApp().NewLockNodeUuid())
|
shortOrderId := q5.ToString(f5.GetApp().NewLockNodeUuid())
|
||||||
|
orderId := q5.ToString(shortOrderId)
|
||||||
params := map[string]string{
|
params := map[string]string{
|
||||||
"c": "BcService",
|
"c": "BcService",
|
||||||
"a": "recharge",
|
"a": "recharge",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user