Bläddra i källkod

feat: bigmember 标讯详情页联系人数量调整

fuwencai 5 månader sedan
förälder
incheckning
636b8fc2c4

+ 3 - 2
src/jfw/modules/bigmember/src/service/portrait/memberPortraitAction.go

@@ -374,7 +374,7 @@ func (this *EntPortrait) WinnerMiniPortrait() {
 				entName := qutil.ObjToString(entInfo["entName"])
 				if entName != "" {
 					if contactList, err := cepm.GetContacts(entName, ContactEntTypeWinner); err == nil {
-						rData["contactCount"] = GetContactCount(contactList)
+						rData["contactCount"] = len(contactList)
 					} else {
 						rData["contactCount"] = 0
 					}
@@ -684,7 +684,7 @@ func (this *EntPortrait) BuyerMiniPortrait() {
 			rData["biddingCount"] = cepm.GetBuyerNewCount(entName)
 			//采购联系人数量
 			if contactList, err := cepm.GetContacts(entName, ContactEntTypeBuyer); err == nil {
-				rData["contactCount"] = GetContactCount(contactList)
+				rData["contactCount"] = len(contactList)
 			}
 			//
 			if config.Config.MiniPortraitCacheTime > 0 {
@@ -777,6 +777,7 @@ func (this *EntPortrait) NoLoginAssociatedInfo() {
 	this.ServeJson(NewResult(rData, nil))
 }
 
+// 已弃用  在p705版本调整为不去重
 // GetContactCount 联系方式去重后的数量 p406 根据联系方式去重
 func GetContactCount(contactList []interface{}) (count int) {
 	exists := map[string]struct{}{}