...
|
...
|
@@ -20,13 +20,14 @@ func SyncBestshopOrder(message *sarama.ConsumerMessage) error { |
|
|
)
|
|
|
err = json.Unmarshal(message.Value, &cmd)
|
|
|
if err != nil {
|
|
|
return fmt.Errorf("[SyncBestshopOrder] 解析kafka数据失败;%s", err)
|
|
|
return fmt.Errorf("[Consumer][SyncBestshopOrder] 解析kafka数据失败;%s", err)
|
|
|
}
|
|
|
if cmd.PartnerId <= 0 {
|
|
|
logs.Info("[SyncBestshopOrder] PartnerId<=0 ,不处理消息")
|
|
|
logs.Info("[Consumer][SyncBestshopOrder] PartnerId<=0 ,不处理消息")
|
|
|
return nil
|
|
|
}
|
|
|
srv := syncOrderSrv.NewOrderInfoService(nil)
|
|
|
err = srv.SyncOrderFromBestshop(cmd)
|
|
|
return err
|
|
|
e := fmt.Errorf("[Consumer][SyncBestshopOrder] %s", err)
|
|
|
return e
|
|
|
} |
...
|
...
|
|