Bladeren bron

update

three
DengBiao 11 maanden geleden
bovenliggende
commit
e84f10d7e0
2 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

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


Laden…
Annuleren
Opslaan