|
@@ -84,6 +84,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
tabularflag := m.GetString("tabularflag")
|
|
|
userId := util.ObjToString(m.GetSession("userId"))
|
|
|
phone := util.ObjToString(m.GetSession("phone"))
|
|
|
+ entId := util.IntAll(m.GetSession("entId"))
|
|
|
baseUserId := m.GetSession("base_user_id")
|
|
|
currentPage, _ := m.GetInteger("pageNumber")
|
|
|
pageSize, _ := m.GetInteger("pageSize")
|
|
@@ -95,7 +96,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
//判断用户是否登录进行表格查询,否则返回基本数据
|
|
|
tabularflag = ""
|
|
|
}
|
|
|
- userInfo := jy.GetVipState(public.Mysql, public.MQFW, userId)
|
|
|
+ userInfo := jy.GetVipState(public.Mysql, public.MQFW, userId, entId)
|
|
|
if territorialization != "" { // 如果是领域化数据 判断是否是付费用户 是否有权限
|
|
|
if (userInfo.BigMember <= 0 && userInfo.VipState <= 0) || (!jy.HasBidFieldPower(config.ResourceApi.HasPowers, fmt.Sprint(util.Int64All(baseUserId)), MedicalFunctionCode)) {
|
|
|
m.ServeJson(map[string]interface{}{
|
|
@@ -190,6 +191,7 @@ func (m *Front) PcAjaxReq_Bak() {
|
|
|
bidField := m.GetString("bid_field") // 领域类型 0101- 医疗
|
|
|
tabularflag := m.GetString("tabularflag")
|
|
|
userId := util.ObjToString(m.GetSession("userId"))
|
|
|
+ entId := util.IntAll(m.GetSession("entId"))
|
|
|
baseUserId := m.GetSession("base_user_id")
|
|
|
currentPage, _ := m.GetInteger("pageNumber")
|
|
|
pageSize, _ := m.GetInteger("pageSize")
|
|
@@ -202,7 +204,7 @@ func (m *Front) PcAjaxReq_Bak() {
|
|
|
}
|
|
|
reqType := m.GetString("reqType")
|
|
|
if bidField != "" { // 如果是领域化数据 判断是否是付费用户 是否有权限
|
|
|
- vipStatus := jy.GetVipState(public.Mysql, public.MQFW, userId)
|
|
|
+ vipStatus := jy.GetVipState(public.Mysql, public.MQFW, userId, entId)
|
|
|
if (vipStatus.BigMember <= 0 && vipStatus.VipState <= 0) || (!jy.HasBidFieldPower(config.ResourceApi.HasPowers, fmt.Sprint(util.Int64All(baseUserId)), MedicalFunctionCode)) {
|
|
|
m.ServeJson(map[string]interface{}{
|
|
|
"list": []map[string]interface{}{},
|
|
@@ -249,7 +251,7 @@ func (m *Front) PcAjaxReq_Bak() {
|
|
|
start int
|
|
|
city string //城市
|
|
|
)
|
|
|
- isPayedUser, publishtime, queryItems, currentPage, start = bidsearch.PublicSearch(userId, selectType, publishtime, util.Int64All(config.Sysconfig["bidSearchOldUserLimit"]), currentPage, pageSize)
|
|
|
+ isPayedUser, publishtime, queryItems, currentPage, start = bidsearch.PublicSearch(userId, selectType, publishtime, util.Int64All(config.Sysconfig["bidSearchOldUserLimit"]), currentPage, pageSize, entId)
|
|
|
if isPayedUser {
|
|
|
buyerclass = m.GetString("buyerclass")
|
|
|
hasBuyerTel, hasWinnerTel = m.GetString("buyertel"), m.GetString("winnertel")
|
|
@@ -467,6 +469,7 @@ func (m *Front) Getpage() error {
|
|
|
func (m *Front) WxsearchlistPaging() {
|
|
|
defer util.Catch()
|
|
|
userId, _ := m.GetSession("userId").(string)
|
|
|
+ entId := util.IntAll(m.GetSession("entId"))
|
|
|
var list *[]map[string]interface{}
|
|
|
var b_word, a_word, secondFlag, secondKWS string
|
|
|
var secondList []map[string]interface{}
|
|
@@ -506,7 +509,7 @@ func (m *Front) WxsearchlistPaging() {
|
|
|
var fileExists = m.GetString("fileExists") //是否有附件--所有用户都可用此功能 0:全部;1:有附件;-1:无附件
|
|
|
var city string = "" //城市
|
|
|
|
|
|
- vipStatus := jy.GetVipState(public.Mysql, public.MQFW, userId)
|
|
|
+ vipStatus := jy.GetVipState(public.Mysql, public.MQFW, userId, entId)
|
|
|
isPayedUser = vipStatus.IsPayedUser()
|
|
|
queryItems := vipStatus.GetQueryItems(selectType, util.Int64All(config.Sysconfig["bidSearchOldUserLimit"]))
|
|
|
if isPayedUser {
|
|
@@ -1953,7 +1956,8 @@ func (f *Front) HistorypushPaging() error {
|
|
|
func (m *Front) Subscribe() error {
|
|
|
isBuyed := false
|
|
|
if userId, _ := m.GetSession("userId").(string); userId != "" {
|
|
|
- vStatus := jy.GetVipState(public.Mysql, public.MQFW, userId)
|
|
|
+ entId := util.IntAll(m.GetSession("entId"))
|
|
|
+ vStatus := jy.GetVipState(public.Mysql, public.MQFW, userId, entId)
|
|
|
isBuyed = vStatus.VipState > 0
|
|
|
}
|
|
|
m.T["isBuyed"] = isBuyed
|