|
@@ -16,7 +16,7 @@ import (
|
|
|
qu "app.yhyue.com/moapp/jybase/common"
|
|
|
)
|
|
|
|
|
|
-//是否是付费用户
|
|
|
+// 是否是付费用户
|
|
|
type VipState struct {
|
|
|
VipState int //超级订阅状态(1普通 2升级版)
|
|
|
BigMember int //大会员状态
|
|
@@ -25,6 +25,7 @@ type VipState struct {
|
|
|
VipStartData int64 //超级订阅开始时间
|
|
|
IsNewEnt bool //新版商机管理
|
|
|
EntService bool //企业服务权限
|
|
|
+ isProperty bool
|
|
|
}
|
|
|
|
|
|
func GetVipState(session *httpsession.Session, middleground middleground.Middleground, userId string) (vs *VipState) {
|
|
@@ -54,14 +55,14 @@ func GetVipState(session *httpsession.Session, middleground middleground.Middleg
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-//是否是付费账户
|
|
|
+// 是否是付费账户
|
|
|
func (vs *VipState) IsPayedUser() bool {
|
|
|
- return vs.VipState > 0 || vs.BigMember > 0 || vs.EntMember > 0
|
|
|
+ return vs.VipState > 0 || vs.BigMember > 0 || vs.EntMember > 0 || vs.isProperty
|
|
|
}
|
|
|
|
|
|
-//免费 标题(title) 正文(content) 老用户【中标企业(winner)】
|
|
|
-//付费用户 全部(all)、标题(title) 正文(content) 会员: 采购单位(buyer) 中标企业(winner) 招标代理机构(agency) 附件(file)
|
|
|
-//项目名称projectname和标的物purchasing(ppa)
|
|
|
+// 免费 标题(title) 正文(content) 老用户【中标企业(winner)】
|
|
|
+// 付费用户 全部(all)、标题(title) 正文(content) 会员: 采购单位(buyer) 中标企业(winner) 招标代理机构(agency) 附件(file)
|
|
|
+// 项目名称projectname和标的物purchasing(ppa)
|
|
|
func (vs *VipState) GetQueryItems(selectType string, limitOldTime int64) (items []string) {
|
|
|
if vs.IsPayedUser() {
|
|
|
for _, t := range strings.Split(selectType, ",") {
|