|
@@ -14,6 +14,7 @@ import ( |
|
|
"errors" |
|
|
"errors" |
|
|
"fmt" |
|
|
"fmt" |
|
|
"github.com/gin-gonic/gin" |
|
|
"github.com/gin-gonic/gin" |
|
|
|
|
|
"math/rand" |
|
|
"time" |
|
|
"time" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
@@ -63,6 +64,7 @@ func (dealSuperCloudIssuanceCallBackService *DealSuperCloudIssuanceCallBackServi |
|
|
"master_id": c.GetString("mid"), |
|
|
"master_id": c.GetString("mid"), |
|
|
"content": req.Data.Content, |
|
|
"content": req.Data.Content, |
|
|
} |
|
|
} |
|
|
|
|
|
time.Sleep(time.Millisecond * time.Duration(rand.Intn(1000))) |
|
|
utils.FilePutContents("cloud", utils.SerializeStr(args)) |
|
|
utils.FilePutContents("cloud", utils.SerializeStr(args)) |
|
|
chain := chain_transfer.TurnChain(MasterDb(c), db.Db, db2.ZhimengDb, args) |
|
|
chain := chain_transfer.TurnChain(MasterDb(c), db.Db, db2.ZhimengDb, args) |
|
|
utils.FilePutContents("cloud", utils.SerializeStr(chain)) |
|
|
utils.FilePutContents("cloud", utils.SerializeStr(chain)) |
|
@@ -243,6 +245,7 @@ func (dealSuperCloudIssuanceCallBackService *DealSuperCloudIssuanceCallBackServi |
|
|
"master_id": dealSuperCloudIssuanceCallBackService.Context.GetString("mid"), |
|
|
"master_id": dealSuperCloudIssuanceCallBackService.Context.GetString("mid"), |
|
|
"content": req.Data.Content, |
|
|
"content": req.Data.Content, |
|
|
} |
|
|
} |
|
|
|
|
|
time.Sleep(time.Millisecond * time.Duration(rand.Intn(1000))) |
|
|
utils.FilePutContents("cloud_source", utils.SerializeStr(args)) |
|
|
utils.FilePutContents("cloud_source", utils.SerializeStr(args)) |
|
|
chain := chain_transfer.TurnChain(MasterDb(dealSuperCloudIssuanceCallBackService.Context), db.Db, db2.ZhimengDb, args) |
|
|
chain := chain_transfer.TurnChain(MasterDb(dealSuperCloudIssuanceCallBackService.Context), db.Db, db2.ZhimengDb, args) |
|
|
utils.FilePutContents("cloud_source", utils.SerializeStr(chain)) |
|
|
utils.FilePutContents("cloud_source", utils.SerializeStr(chain)) |
|
|