This commit is contained in:
aozhiwei 2024-08-02 11:37:14 +08:00
parent 60308cc426
commit a612e7c39d
3 changed files with 18 additions and 1 deletions

View File

@ -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"
)
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
)

View File

@ -88,3 +88,11 @@ func CalcContributionScore(nfts []*NftStacking) float64 {
func IsValidSessionId(accountId string, sessionId string) bool {
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
}

View File

@ -58,7 +58,8 @@ func (this *RechargeApi) Buy(c *gin.Context) {
f5.RspErr(c, 2, "goods id param error")
return
}
orderId := q5.ToString(f5.GetApp().NewLockNodeUuid())
shortOrderId := q5.ToString(f5.GetApp().NewLockNodeUuid())
orderId := q5.ToString(shortOrderId)
params := map[string]string{
"c": "BcService",
"a": "recharge",