浏览代码

fix:关联id加密

duxin 3 年之前
父节点
当前提交
cf1725e9a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rpc/consumer/internal/logic/infochangelogic.go

+ 1 - 1
rpc/consumer/internal/logic/infochangelogic.go

@@ -64,7 +64,7 @@ func (l *InfoChangeLogic) InfoChange(in *consumer.InfoDetailReq) (*consumer.Info
 				Results.Detail = mc.InterfaceToStr(data["detail"])
 				Results.CreateTime = mc.InterfaceToStr(data["create_time"])
 				if data["related_id"] != nil && mc.IntAll(data["related_id"]) != 0 {
-					Related.Id = mc.InterfaceToStr(data["related_id"])
+					Related.Id = se.SE.EncodeString(mc.InterfaceToStr(data["related_id"]))
 					Related.Title = mc.InterfaceToStr(data["relatedTitle"])
 					Results.InfoDetailRelated = &Related
 				}