Browse Source

update

three
DengBiao 1 year ago
parent
commit
2273bbad08
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      consume/canal_guide_order_consume.go
  2. +2
    -2
      consume/canal_order_consume.go

+ 2
- 2
consume/canal_guide_order_consume.go View File

@@ -43,7 +43,7 @@ func CanalGuideOrderConsume(queue md.MqQueue) {
res, ok = <-delivery res, ok = <-delivery
if ok == true { if ok == true {
//fmt.Println(string(res.Body)) //fmt.Println(string(res.Body))
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
fmt.Println(">>>>>>>>>>>>>>>>>>CanalGuideOrderConsume<<<<<<<<<<<<<<<<<<<<<<<<<")
err = handleGuideOrdTable(res.Body, geoIp2db) err = handleGuideOrdTable(res.Body, geoIp2db)
//_ = res.Reject(false) //_ = res.Reject(false)
_ = res.Ack(true) _ = res.Ack(true)
@@ -124,7 +124,7 @@ func handleGuideOrdTable(msg []byte, geoIp2db *geoip2.DBReader) error {
if err != nil { if err != nil {
return err return err
} }
fmt.Printf("CreateDoc ==> %+v \n\n", createDocRet)
fmt.Printf("CreateDoc CanalGuide ==> %+v \n\n", createDocRet)
} }
} }
return nil return nil


+ 2
- 2
consume/canal_order_consume.go View File

@@ -36,7 +36,7 @@ func CanalOrderConsume(queue md.MqQueue) {
res, ok = <-delivery res, ok = <-delivery
if ok == true { if ok == true {
//fmt.Println(string(res.Body)) //fmt.Println(string(res.Body))
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
fmt.Println(">>>>>>>>>>>>>>>>CanalOrderConsume<<<<<<<<<<<<<<<<<<<<<<<<<")
err = handleMallOrdTable(res.Body) err = handleMallOrdTable(res.Body)
//_ = res.Reject(false) //_ = res.Reject(false)
_ = res.Ack(true) _ = res.Ack(true)
@@ -140,7 +140,7 @@ func handleMallOrdTable(msg []byte) error {
if err != nil { if err != nil {
return err return err
} }
fmt.Printf("CreateDoc ==> %+v \n\n", createDocRet)
fmt.Printf("CreateDoc CanalOrder ==> %+v \n\n", createDocRet)
} }
} }
return nil return nil


Loading…
Cancel
Save