浏览代码

feat:免费订阅菜单调整

wangshan 3 年之前
父节点
当前提交
5da4323ee8
共有 1 个文件被更改,包括 5 次插入5 次删除
  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 {