1
This commit is contained in:
parent
4440e24db7
commit
45db73ab04
@ -124,6 +124,7 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
TRANS_ID_EPOCH = 1643212800;
|
||||
TRANS_ID_MAX_FUNC_ID = 99
|
||||
TRANS_ID_MAX_TIME = 999999999
|
||||
TRANS_ID_MAX_SEQ_ID = 9999999
|
||||
|
@ -24,7 +24,7 @@ type TransId struct {
|
||||
|
||||
func (this *TransId) Init(funcId int32, time int32, seqId int32, params [3]int64) {
|
||||
this.funcId = funcId
|
||||
this.time = time
|
||||
this.time = time - TRANS_ID_EPOCH
|
||||
this.seqId = seqId
|
||||
this.params = params
|
||||
}
|
||||
|
@ -58,13 +58,14 @@ func (this *RechargeApi) Buy(c *gin.Context) {
|
||||
f5.RspErr(c, 2, "goods id param error")
|
||||
return
|
||||
}
|
||||
nowTime := q5.ToInt32(f5.GetApp().GetRealSeconds())
|
||||
shortOrderId := f5.GetApp().NewLockNodeUuid()
|
||||
orderId := ""
|
||||
{
|
||||
transId := jccommon.NewTransId()
|
||||
transId.Init(
|
||||
jccommon.TRANS_ID_FUNC_NORMAL,
|
||||
0,
|
||||
nowTime,
|
||||
0,
|
||||
[3]int64{
|
||||
0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user