Browse Source

update

three
DengBiao 1 year ago
parent
commit
e84f10d7e0
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      cloud_issuance/svc/svc_deal_call_back.go
  2. +2
    -0
      consume/cloud_issuance_msg_callback.go

+ 1
- 1
cloud_issuance/svc/svc_deal_call_back.go View File

@@ -61,7 +61,7 @@ func (dealCloudIssuanceCallBackService *DealCloudIssuanceCallBackService) DealCa
"content": req.Data.Content,
}
utils.FilePutContents("cloud", utils.SerializeStr(args))
time.Sleep(time.Millisecond * 300) // 等待300毫秒
time.Sleep(time.Millisecond * 200) // 等待200毫秒
chain := chain_transfer.TurnChain(svc.MasterDb(c), db2.Db, args)
utils.FilePutContents("cloud_resp", utils.SerializeStr(chain))
if chain.Count != "" {


+ 2
- 0
consume/cloud_issuance_msg_callback.go View File

@@ -13,6 +13,7 @@ import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/streadway/amqp"
"time"
)

func CloudIssuanceMsgCallBackConsume(queue md.MqQueue) {
@@ -39,6 +40,7 @@ func CloudIssuanceMsgCallBackConsume(queue md.MqQueue) {
if err != nil {
panic(err)
}
time.Sleep(time.Millisecond * 300) // 等待300毫秒
go func() {
//设置masterId
cloudIssuanceRobotRecords, err := db.CloudIssuanceRobotRecordsGetOneByParams(map[string]interface{}{


Loading…
Cancel
Save