Эх сурвалжийг харах

wip:增加省份订阅包购买数量

wangkaiyue 1 жил өмнө
parent
commit
579e691d04
2 өөрчлөгдсөн 6 нэмэгдсэн , 0 устгасан
  1. 1 0
      entity/power.go
  2. 5 0
      service/power.go

+ 1 - 0
entity/power.go

@@ -35,6 +35,7 @@ type Free struct {
 	OjyLength             int64 //ojy的长度
 	Original              int64 //查看原文次数/每月
 	PpStatus              int64 //省份订阅包状态
+	PpAreaCount           int64 //省份订阅包购买省份数量
 	PpStartTime           int64 //省份订阅开始时间
 	PpEndTime             int64 //省份订阅到期时间
 }

+ 5 - 0
service/power.go

@@ -161,6 +161,11 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 				free.PpStatus = common.Int64All(o_jy["i_ppstatus"])
 				free.PpStartTime = common.Int64All(o_jy["l_areaStart_p"])
 				free.PpEndTime = common.Int64All(o_jy["l_areaEnd_p"])
+
+				if ppBuyset, _ := o_jy["o_buyset_p"].(map[string]interface{}); ppBuyset != nil && len(ppBuyset) > 0 {
+					free.PpAreaCount = common.Int64All(ppBuyset["areacount"])
+				}
+
 				//超级订阅
 				vipStatus := common.Int64All((*data)["i_vip_status"])
 				vipStartTime := common.Int64All((*data)["l_vip_starttime"])