Kaynağa Gözat

fix:企业id加密

xmy 3 yıl önce
ebeveyn
işleme
40bb561bf8

+ 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"])
 			info.InfoDetailContact = &conctact
 			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
 			//其他供应信息
-			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 {
 				for _, v := range *otherData {
 					if info.Id == se.SE.EncodeString(mc.InterfaceToStr(v["_id"])) {