Răsfoiți Sursa

Merge branch 'feature/v4.9.9_ws' of qmx/jy into feature/v4.9.9

fuwencai 1 an în urmă
părinte
comite
da1a53e439

+ 1 - 1
src/jfw/modules/publicapply/src/customer/entity/entiy.go

@@ -80,7 +80,6 @@ func (this *CustomerOperation) CheckIsFollow() (data map[string]interface{}) {
 	useCount := db.Mgo.Count(fc, map[string]interface{}{
 		"userId": this.UserId,
 	})
-	countInfo["use"] = useCount
 	// 获取关注上限
 	//BigMsg := jy.GetBigVipUserBaseMsg(this.Session, *config.Middleground)  这个方法没有企业服务的信息不用这个了
 	o := this.SessUser
@@ -93,6 +92,7 @@ func (this *CustomerOperation) CheckIsFollow() (data map[string]interface{}) {
 	if useCount > countLimit {
 		useCount = countLimit
 	}
+	countInfo["use"] = useCount
 	surplus := countLimit - useCount
 	countInfo["surplus"] = surplus
 	return