DengBiao pirms 10 mēnešiem
vecāks
revīzija
e84f10d7e0
2 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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{}{


Notiek ielāde…
Atcelt
Saglabāt