wangshan 3 gadi atpakaļ
vecāks
revīzija
8305857cb8

+ 2 - 2
src/jfw/modules/subscribepay/src/service/userAccountInfo.go

@@ -200,9 +200,9 @@ func (this *UserAccount) MailSet(doType string) {
 func (this *UserAccount) CompanyAssociation() {
 	rData, errMsg := func() (interface{}, error) {
 		name := this.GetString("name")
-		companyCount, _ := this.GetInt("companyCount")
 		count := config.Config.CompanySize
-		if companyCount <= config.Config.CompanySize && companyCount != 0 {
+		companyCount, _ := this.GetInt("companyCount")
+		if companyCount <= count*2 && companyCount > 0 {
 			count = companyCount
 		}
 		list := []string{}