Ver código fonte

feat:免费订阅菜单调整

wangshan 3 anos atrás
pai
commit
5da4323ee8
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5 5
      entity/user.go

+ 5 - 5
entity/user.go

@@ -107,11 +107,11 @@ func AutoUserPowerInfo(userId, appId string, internalTime int, bigMemberOff bool
 			//免费用户
 			if isFree {
 				UserPowerMap["300"] = 1
-			}
-			freeSet := MC.ObjToMap((*data)["o_jy"])
-			if MC.IntAll((*freeSet)["i_newfree"]) > 0 || IsNewFreeTimeCell < MC.IntAll((*data)["l_registedate"]) {
-				//新免费用户
-				UserPowerMap["301"] = 1
+				freeSet := MC.ObjToMap((*data)["o_jy"])
+				if MC.IntAll((*freeSet)["i_newfree"]) > 0 || IsNewFreeTimeCell < MC.IntAll((*data)["l_registedate"]) {
+					//新免费用户
+					UserPowerMap["301"] = 1
+				}
 			}
 			//广东移动DICT
 			if Mysql.CountBySql(`select count(*) from privatedata where phone = ?`, phone) > 0 {