Browse Source

wip:增加免费用户省份订阅包

wangkaiyue 1 year ago
parent
commit
fdb8d6ba02
2 changed files with 6 additions and 6 deletions
  1. 3 3
      entity/power.go
  2. 3 3
      service/power.go

+ 3 - 3
entity/power.go

@@ -34,9 +34,9 @@ type Free struct {
 	Apppushunread         int64 //已读未读
 	OjyLength             int64 //ojy的长度
 	Original              int64 //查看原文次数/每月
-	PPStatus              int   //省份订阅包状态
-	PPStartTime           int64 //省份订阅开始时间
-	PPEndTime             int64 //省份订阅到期时间
+	PpStatus              int   //省份订阅包状态
+	PpStartTime           int64 //省份订阅开始时间
+	PpEndTime             int64 //省份订阅到期时间
 }
 
 // 超级订阅相关

+ 3 - 3
service/power.go

@@ -151,9 +151,9 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 					free.IsUpgrade = true //新免费用户
 				}
 				//省份订阅包
-				free.PPStatus = common.IntAll(o_jy["i_ppstatus"])
-				free.PPStartTime = common.Int64All(o_jy["l_areaStart_p"])
-				free.PPEndTime = common.Int64All(o_jy["l_areaEnd_p"])
+				free.PpStatus = common.IntAll(o_jy["i_ppstatus"])
+				free.PpStartTime = common.Int64All(o_jy["l_areaStart_p"])
+				free.PpEndTime = common.Int64All(o_jy["l_areaEnd_p"])
 				//超级订阅
 				vipStatus := common.Int64All((*data)["i_vip_status"])
 				vipStartTime := common.Int64All((*data)["l_vip_starttime"])