正在显示
1 个修改的文件
包含
10 行增加
和
11 行删除
| @@ -2,7 +2,6 @@ package handle | @@ -2,7 +2,6 @@ package handle | ||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "encoding/json" | 4 | "encoding/json" |
| 5 | - "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/position/service" | ||
| 6 | "strconv" | 5 | "strconv" |
| 7 | 6 | ||
| 8 | "github.com/Shopify/sarama" | 7 | "github.com/Shopify/sarama" |
| @@ -89,16 +88,16 @@ func SyncDataBusinessAdmin(msgData *sarama.ConsumerMessage) error { | @@ -89,16 +88,16 @@ func SyncDataBusinessAdmin(msgData *sarama.ConsumerMessage) error { | ||
| 89 | return err | 88 | return err |
| 90 | } | 89 | } |
| 91 | case "position": | 90 | case "position": |
| 92 | - positionSrv := service.SyncDataPositionService{} | ||
| 93 | - err = positionSrv.FromBusinessAdmin(&msgBody) | ||
| 94 | - if err != nil { | ||
| 95 | - log.Logger.Error("处理position消息失败"+err.Error(), map[string]interface{}{ | ||
| 96 | - "module": msgBody.Module, | ||
| 97 | - "action": msgBody.Action, | ||
| 98 | - "data": string(msgBody.Data), | ||
| 99 | - }) | ||
| 100 | - return err | ||
| 101 | - } | 91 | + //positionSrv := service.SyncDataPositionService{} |
| 92 | + //err = positionSrv.FromBusinessAdmin(&msgBody) | ||
| 93 | + //if err != nil { | ||
| 94 | + // log.Logger.Error("处理position消息失败"+err.Error(), map[string]interface{}{ | ||
| 95 | + // "module": msgBody.Module, | ||
| 96 | + // "action": msgBody.Action, | ||
| 97 | + // "data": string(msgBody.Data), | ||
| 98 | + // }) | ||
| 99 | + // return err | ||
| 100 | + //} | ||
| 102 | } | 101 | } |
| 103 | err = msgRepo.SaveMessage(&receivedMsg) | 102 | err = msgRepo.SaveMessage(&receivedMsg) |
| 104 | if err != nil { | 103 | if err != nil { |
-
请 注册 或 登录 后发表评论