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