소스 검색

fix:企业id加密

xmy 3 년 전
부모
커밋
40bb561bf8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      rpc/consumer/internal/logic/supplyinfodetaillogic.go

+ 2 - 2
rpc/consumer/internal/logic/supplyinfodetaillogic.go

@@ -56,10 +56,10 @@ func (l *SupplyInfoDetailLogic) SupplyInfoDetail(in *consumerinfo.StatusReq) (*c
 			conctact.Overt = mc.Int64All((*data)["contact_overt"])
 			conctact.Overt = mc.Int64All((*data)["contact_overt"])
 			info.InfoDetailContact = &conctact
 			info.InfoDetailContact = &conctact
 			info.Attach = astr
 			info.Attach = astr
-			info.EntId = se.SE.EncodeString(mc.InterfaceToStr((*data)["ent_id"]))
+			info.EntId = se.SE.Encode2HexByCheck(mc.InterfaceToStr((*data)["ent_id"]))
 			info.Id = in.MsgId
 			info.Id = in.MsgId
 			//其他供应信息
 			//其他供应信息
-			otherData := es.GetSupplyOtherInfoByEntid(mc.InterfaceToStr(se.SE.DecodeString(info.EntId)), 5)
+			otherData := es.GetSupplyOtherInfoByEntid(mc.InterfaceToStr((*data)["ent_id"]), 5)
 			if otherData != nil && len(*otherData) > 0 {
 			if otherData != nil && len(*otherData) > 0 {
 				for _, v := range *otherData {
 				for _, v := range *otherData {
 					if info.Id == se.SE.EncodeString(mc.InterfaceToStr(v["_id"])) {
 					if info.Id == se.SE.EncodeString(mc.InterfaceToStr(v["_id"])) {