|
@@ -233,8 +233,11 @@ func (s *Short) Article(stype, id string) error {
|
|
|
isMember = util.IntAll((*res)["i_member_status"]) > 0
|
|
|
|
|
|
if phone, _ := util.If(util.ObjToString((*res)["s_phone"]) != "", util.ObjToString((*res)["s_phone"]), util.ObjToString((*res)["s_m_phone"])).(string); phone != "" {
|
|
|
+ //商机管理用户
|
|
|
isEntniche = public.Mysql.CountBySql(`SELECT count(1) from entniche_user a INNER JOIN entniche_info b on (a.phone=? and a.power=1 and a.ent_id=b.id and b.status>0)`, phone) > 0
|
|
|
+ //商机管理用户-新版
|
|
|
isEntnicheNew = public.Mysql.CountBySql(`SELECT count(1) from entniche_user a INNER JOIN entniche_info b on (a.phone=? and a.power=1 and a.ent_id=b.id and b.status>0 and b.isNew > 0)`, phone) > 0
|
|
|
+ //广东移动DICT 用户
|
|
|
privatedata = public.Mysql.CountBySql(`select count(1) from privatedata where phone = ?`, phone) > 0
|
|
|
}
|
|
|
if !isEntniche && privatedata {
|
|
@@ -244,7 +247,6 @@ func (s *Short) Article(stype, id string) error {
|
|
|
s.T["isMember"] = isMember
|
|
|
s.T["isEntniche"] = isEntniche
|
|
|
s.T["isEntnicheNew"] = isEntnicheNew
|
|
|
-
|
|
|
if bm {
|
|
|
//判断有没有取关,取关的话,跳转到关于剑鱼标讯页面
|
|
|
if ssOpenid != nil && ssOpenid != "" {
|
|
@@ -281,53 +283,83 @@ func (s *Short) Article(stype, id string) error {
|
|
|
} else {
|
|
|
s.T["openid"] = se.EncodeString(myopenid) //"-1"
|
|
|
}
|
|
|
-
|
|
|
mynickname, _ := s.GetSession("s_nickname").(string)
|
|
|
myavatar, _ := s.GetSession("s_avatar").(string)
|
|
|
s.T["nickname"] = mynickname
|
|
|
s.T["avatar"] = myavatar
|
|
|
s.T["signature"] = wx.SignJSSDK(s.Site() + s.Url())
|
|
|
-
|
|
|
obj := wxvisitD(sid, userId, myopenid, isVip || isMember || isEntniche)
|
|
|
+ canRead := false
|
|
|
if isVip || isMember || isEntniche {
|
|
|
- s.T["canRead"] = true
|
|
|
+ canRead = true
|
|
|
} else {
|
|
|
- s.T["canRead"] = SeeDetailLimit(obj, userId, sid)
|
|
|
+ canRead = SeeDetailLimit(obj, userId, sid)
|
|
|
}
|
|
|
if len(obj) > 0 {
|
|
|
- FieldProcessing(obj, ssOpenid, industry, id, from_userid, userId, stype, isVip || isMember || isEntniche, true)
|
|
|
-
|
|
|
- //免费用户正文手机号替换
|
|
|
- if obj["site"] == "剑鱼信息发布平台" && !isMember {
|
|
|
- //采购电话中标单位电话置空
|
|
|
- if util.InterfaceToStr(obj["buyertel"]) != "" {
|
|
|
- obj["buyertel"] = "freeView"
|
|
|
- }
|
|
|
- if util.InterfaceToStr(obj["winnertel"]) != "" {
|
|
|
- obj["winnertel"] = "freeView"
|
|
|
+ if canRead {
|
|
|
+ FieldProcessing(obj, ssOpenid, industry, id, from_userid, userId, stype, isVip || isMember || isEntniche, true)
|
|
|
+ //免费用户正文手机号替换
|
|
|
+ if obj["site"] == "剑鱼信息发布平台" && !isMember {
|
|
|
+ //采购电话中标单位电话置空
|
|
|
+ if util.InterfaceToStr(obj["buyertel"]) != "" {
|
|
|
+ obj["buyertel"] = "freeView"
|
|
|
+ }
|
|
|
+ if util.InterfaceToStr(obj["winnertel"]) != "" {
|
|
|
+ obj["winnertel"] = "freeView"
|
|
|
+ }
|
|
|
+ //正文电话 手机号 邮箱处理
|
|
|
+ if detail, _ := obj["detail"].(string); detail != "" {
|
|
|
+ //手机号
|
|
|
+ re1 := regexp.MustCompile("1[345789]{1}\\d{9}")
|
|
|
+ detail1 := re1.ReplaceAllString(detail, `<span class="freeView">点击查看</span>`)
|
|
|
+ code := util.InterfaceToStr(obj["projectcode"])
|
|
|
+ if code != "" {
|
|
|
+ detail1 = strings.ReplaceAll(detail1, code, "*********")
|
|
|
+ }
|
|
|
+ //座机
|
|
|
+ re2 := regexp.MustCompile("((0\\d{2,3})-)(\\d{7,8})(-(\\d{3,}))?")
|
|
|
+ detail2 := re2.ReplaceAllString(detail1, `<span class="freeView">点击查看</span>`)
|
|
|
+ re4 := regexp.MustCompile("((400)-)(\\d{3,4}-)(\\d{3,})")
|
|
|
+ detail4 := re4.ReplaceAllString(detail2, `<span class="freeView">点击查看</span>`)
|
|
|
+ //邮箱
|
|
|
+ re3 := regexp.MustCompile("([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)")
|
|
|
+ detail3 := re3.ReplaceAllString(detail4, `<span class="freeView">点击查看</span>`)
|
|
|
+ obj["detail"] = strings.ReplaceAll(strings.ReplaceAll(detail3, `<span class="freeView">点击查看</span><span class="freeView">点击查看</span>`, `<span class="freeView">点击查看</span>`), "*********", code)
|
|
|
+ }
|
|
|
}
|
|
|
- //正文电话 手机号 邮箱处理
|
|
|
- if detail, _ := obj["detail"].(string); detail != "" {
|
|
|
- //手机号
|
|
|
- re1 := regexp.MustCompile("1[345789]{1}\\d{9}")
|
|
|
- detail1 := re1.ReplaceAllString(detail, `<span class="freeView">点击查看</span>`)
|
|
|
- code := util.InterfaceToStr(obj["projectcode"])
|
|
|
- if code != "" {
|
|
|
- detail1 = strings.ReplaceAll(detail1, code, "*********")
|
|
|
+ if obj["entidlist"] != nil { //大会员中标企业跳转至画像
|
|
|
+ if winner := util.ObjToString(obj["winner"]); winner != "" {
|
|
|
+ s_winner := util.ObjToString(obj["s_winner"])
|
|
|
+ idObjs, _ := obj["entidlist"].([]interface{})
|
|
|
+ winnerId := ""
|
|
|
+ if names := strings.Split(s_winner, ","); len(names) > 1 {
|
|
|
+ index := 0
|
|
|
+ for i := 0; i < len(names); i++ {
|
|
|
+ if names[i] == winner {
|
|
|
+ index = i
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(idObjs) > index {
|
|
|
+ winnerId = util.ObjToString(idObjs[index])
|
|
|
+ }
|
|
|
+ } else { //中标企业仅一个
|
|
|
+ if len(idObjs) > 0 {
|
|
|
+ winnerId = util.ObjToString(idObjs[0])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if winnerId != "" && winnerId != "-" {
|
|
|
+ obj["entId"] = util.EncodeArticleId2ByCheck(winnerId)
|
|
|
+ }
|
|
|
}
|
|
|
- //座机
|
|
|
- re2 := regexp.MustCompile("((0\\d{2,3})-)(\\d{7,8})(-(\\d{3,}))?")
|
|
|
- detail2 := re2.ReplaceAllString(detail1, `<span class="freeView">点击查看</span>`)
|
|
|
- re4 := regexp.MustCompile("((400)-)(\\d{3,4}-)(\\d{3,})")
|
|
|
- detail4 := re4.ReplaceAllString(detail2, `<span class="freeView">点击查看</span>`)
|
|
|
- //邮箱
|
|
|
- re3 := regexp.MustCompile("([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)")
|
|
|
- detail3 := re3.ReplaceAllString(detail4, `<span class="freeView">点击查看</span>`)
|
|
|
- obj["detail"] = strings.ReplaceAll(strings.ReplaceAll(detail3, `<span class="freeView">点击查看</span><span class="freeView">点击查看</span>`, `<span class="freeView">点击查看</span>`), "*********", code)
|
|
|
+ }
|
|
|
+ s.T["advertcode"] = s.GetString("advertcode")
|
|
|
+ } else {
|
|
|
+ obj = map[string]interface{}{
|
|
|
+ "title": obj["title"],
|
|
|
+ "_id": obj["_id"],
|
|
|
}
|
|
|
}
|
|
|
- //获取打赏文案
|
|
|
- s.T["rewardText"], s.T["advertText"] = getRewardText()
|
|
|
//纠错随机回复
|
|
|
recoveryRight, _ := config.Sysconfig["recoveryRight"].([]interface{})
|
|
|
recVal := rand.New(rand.NewSource(time.Now().UnixNano())).Intn(len(recoveryRight))
|
|
@@ -335,34 +367,11 @@ func (s *Short) Article(stype, id string) error {
|
|
|
s.T["advertImg"] = config.Sysconfig["advertImg"]
|
|
|
s.T["advertName"] = config.Sysconfig["advertName"]
|
|
|
s.T["advertUrl"] = config.Sysconfig["advertUrl"]
|
|
|
+ s.T["canRead"] = canRead
|
|
|
+ obj["industry"] = industry
|
|
|
s.T["obj"] = obj
|
|
|
- if obj["entidlist"] != nil { //大会员中标企业跳转至画像
|
|
|
- if winner := util.ObjToString(obj["winner"]); winner != "" {
|
|
|
- s_winner := util.ObjToString(obj["s_winner"])
|
|
|
- idObjs, _ := obj["entidlist"].([]interface{})
|
|
|
- winnerId := ""
|
|
|
- if names := strings.Split(s_winner, ","); len(names) > 1 {
|
|
|
- index := 0
|
|
|
- for i := 0; i < len(names); i++ {
|
|
|
- if names[i] == winner {
|
|
|
- index = i
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
- if len(idObjs) > index {
|
|
|
- winnerId = util.ObjToString(idObjs[index])
|
|
|
- }
|
|
|
- } else { //中标企业仅一个
|
|
|
- if len(idObjs) > 0 {
|
|
|
- winnerId = util.ObjToString(idObjs[0])
|
|
|
- }
|
|
|
- }
|
|
|
- if winnerId != "" && winnerId != "-" {
|
|
|
- obj["entId"] = util.EncodeArticleId2ByCheck(winnerId)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- s.T["advertcode"] = s.GetString("advertcode")
|
|
|
+ //获取打赏文案
|
|
|
+ s.T["rewardText"], s.T["advertText"] = getRewardText()
|
|
|
content, _ := s.Render4Cache("/weixin/wxinfocontent_rec.html", &s.T)
|
|
|
return s.SetBody(content)
|
|
|
}
|
|
@@ -379,14 +388,13 @@ func (s *Short) Article(stype, id string) error {
|
|
|
|
|
|
//免费用户浏览三级页判断留资与浏览次数
|
|
|
indust := s.GetString("industry")
|
|
|
- _, _, _, objc := pcVRT(sid, indust, isVip || isMember || isEntniche)
|
|
|
var node bool
|
|
|
if isVip || isMember || isEntniche {
|
|
|
node = true
|
|
|
} else {
|
|
|
+ _, _, _, objc := pcVRT(sid, indust, isVip || isMember || isEntniche)
|
|
|
node = SeeDetailLimit(objc, userId, sid)
|
|
|
}
|
|
|
-
|
|
|
s.T["canRead"] = node
|
|
|
var nodeStr string
|
|
|
if node {
|
|
@@ -397,7 +405,6 @@ func (s *Short) Article(stype, id string) error {
|
|
|
if userId != "" && stype == "indexcontent" { //已登录用户直接跳转至正常三级页
|
|
|
return s.Redirect(fmt.Sprintf("/article/content/%s.html", util.CommonEncodeArticle("content", sid)))
|
|
|
}
|
|
|
-
|
|
|
catchKey := fmt.Sprintf("jypcdetail_%s_%s_%s_%v_%v_%v_%s", userId, stype, sid, isVip, isEntniche, isMember, nodeStr)
|
|
|
//缓存读取
|
|
|
if res := redis.Get("newother", catchKey); res == nil || res == "" {
|
|
@@ -412,103 +419,107 @@ func (s *Short) Article(stype, id string) error {
|
|
|
s.DisableHttpCache()
|
|
|
po, bo, wo, obj := pcVRT(sid, industry, isVip || isMember || isEntniche)
|
|
|
if obj != nil && len(obj) > 0 {
|
|
|
-
|
|
|
- if len(po) > 0 {
|
|
|
- s.T["projectOther"] = po
|
|
|
- }
|
|
|
- if len(bo) > 0 {
|
|
|
- s.T["buyerOther"] = bo
|
|
|
- }
|
|
|
- if len(wo) > 0 {
|
|
|
- s.T["winnerOther"] = wo
|
|
|
- }
|
|
|
- obj["urlpath"] = s.Uri()
|
|
|
- obj["industry"] = industry
|
|
|
- if ssOpenid != nil {
|
|
|
- obj["ucbsId"] = util.EncodeArticleId2ByCheck("ucbs#" + ssOpenid.(string) + "#" + id)
|
|
|
- }
|
|
|
- if isbid(obj["subtype"]) {
|
|
|
- obj["winner_enttel"] = getwinnertel(obj["winner"])
|
|
|
- }
|
|
|
-
|
|
|
- if !(isVip || isMember || isEntniche) { //非会员不展示电话字段
|
|
|
- if obj["winnertel"] != nil {
|
|
|
- obj["winnertel"] = "无权限"
|
|
|
+ if node {
|
|
|
+ if len(po) > 0 {
|
|
|
+ s.T["projectOther"] = po
|
|
|
}
|
|
|
- if obj["winner_enttel"] != "" {
|
|
|
- obj["winner_enttel"] = "无权限"
|
|
|
+ if len(bo) > 0 {
|
|
|
+ s.T["buyerOther"] = bo
|
|
|
}
|
|
|
- }
|
|
|
- //判断时间 //如果是seo页面超过时间访问的进入首页
|
|
|
- comeinTime := time.Unix(util.Int64All(obj["comeintime"]), 0)
|
|
|
- if stype == "indexcontent" {
|
|
|
- if count := public.MQFW.Count("seobidding", map[string]interface{}{"bid": sid}); count <= 0 && comeinTime.Before(time.Now().Add(time.Duration(-util.IntAll(config.Sysconfig["seoBeforeTimeHour"]))*time.Hour)) {
|
|
|
- return s.Redirect("/")
|
|
|
+ if len(wo) > 0 {
|
|
|
+ s.T["winnerOther"] = wo
|
|
|
}
|
|
|
- }
|
|
|
- FieldProcessing(obj, ssOpenid, industry, id, from_userid, userId, stype, isVip || isMember || isEntniche, false)
|
|
|
-
|
|
|
- //免费用户正文手机号替换
|
|
|
- if obj["site"] == "剑鱼信息发布平台" && !isMember {
|
|
|
- //采购电话中标单位电话置空
|
|
|
- if util.InterfaceToStr(obj["buyertel"]) != "" {
|
|
|
- obj["buyertel"] = "freeView"
|
|
|
+ if isbid(obj["subtype"]) {
|
|
|
+ obj["winner_enttel"] = getwinnertel(obj["winner"])
|
|
|
}
|
|
|
- if util.InterfaceToStr(obj["winnertel"]) != "" {
|
|
|
- obj["winnertel"] = "freeView"
|
|
|
+
|
|
|
+ if !(isVip || isMember || isEntniche) { //非会员不展示电话字段
|
|
|
+ if obj["winnertel"] != nil {
|
|
|
+ obj["winnertel"] = "无权限"
|
|
|
+ }
|
|
|
+ if obj["winner_enttel"] != "" {
|
|
|
+ obj["winner_enttel"] = "无权限"
|
|
|
+ }
|
|
|
}
|
|
|
- //正文电话 手机号 邮箱处理
|
|
|
- if detail, _ := obj["detail"].(string); detail != "" {
|
|
|
- //手机号
|
|
|
- re1 := regexp.MustCompile("1[345789]{1}\\d{9}")
|
|
|
- detail1 := re1.ReplaceAllString(detail, `<span class="freeView">点击查看</span>`)
|
|
|
- code := util.InterfaceToStr(obj["projectcode"])
|
|
|
- if code != "" {
|
|
|
- detail1 = strings.ReplaceAll(detail1, code, "*********")
|
|
|
+ //判断时间 //如果是seo页面超过时间访问的进入首页
|
|
|
+ comeinTime := time.Unix(util.Int64All(obj["comeintime"]), 0)
|
|
|
+ if stype == "indexcontent" {
|
|
|
+ if count := public.MQFW.Count("seobidding", map[string]interface{}{"bid": sid}); count <= 0 && comeinTime.Before(time.Now().Add(time.Duration(-util.IntAll(config.Sysconfig["seoBeforeTimeHour"]))*time.Hour)) {
|
|
|
+ return s.Redirect("/")
|
|
|
}
|
|
|
- //座机
|
|
|
- re2 := regexp.MustCompile("((0\\d{2,3})-)(\\d{7,8})(-(\\d{3,}))?")
|
|
|
- detail2 := re2.ReplaceAllString(detail1, `<span class="freeView">点击查看</span>`)
|
|
|
- re4 := regexp.MustCompile("((400)-)(\\d{3,4}-)(\\d{3,})")
|
|
|
- detail4 := re4.ReplaceAllString(detail2, `<span class="freeView">点击查看</span>`)
|
|
|
- //邮箱
|
|
|
- re3 := regexp.MustCompile("([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)")
|
|
|
- detail3 := re3.ReplaceAllString(detail4, `<span class="freeView">点击查看</span>`)
|
|
|
- obj["detail"] = strings.ReplaceAll(strings.ReplaceAll(detail3, `<span class="freeView">点击查看</span><span class="freeView">点击查看</span>`, `<span class="freeView">点击查看</span>`), "*********", code)
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- s.T["obj"] = obj
|
|
|
+ FieldProcessing(obj, ssOpenid, industry, id, from_userid, userId, stype, isVip || isMember || isEntniche, false)
|
|
|
|
|
|
- if obj["projectname"] != nil {
|
|
|
- s.SetSession("projectname", obj["projectname"])
|
|
|
- }
|
|
|
- if obj["entidlist"] != nil { //大会员中标企业跳转至画像
|
|
|
- if winner := util.ObjToString(obj["winner"]); winner != "" {
|
|
|
- s_winner := util.ObjToString(obj["s_winner"])
|
|
|
- idObjs, _ := obj["entidlist"].([]interface{})
|
|
|
- winnerId := ""
|
|
|
- if names := strings.Split(s_winner, ","); len(names) > 1 {
|
|
|
- index := 0
|
|
|
- for i := 0; i < len(names); i++ {
|
|
|
- if names[i] == winner {
|
|
|
- index = i
|
|
|
- break
|
|
|
- }
|
|
|
+ //免费用户正文手机号替换
|
|
|
+ if obj["site"] == "剑鱼信息发布平台" && !isMember {
|
|
|
+ //采购电话中标单位电话置空
|
|
|
+ if util.InterfaceToStr(obj["buyertel"]) != "" {
|
|
|
+ obj["buyertel"] = "freeView"
|
|
|
+ }
|
|
|
+ if util.InterfaceToStr(obj["winnertel"]) != "" {
|
|
|
+ obj["winnertel"] = "freeView"
|
|
|
+ }
|
|
|
+ //正文电话 手机号 邮箱处理
|
|
|
+ if detail, _ := obj["detail"].(string); detail != "" {
|
|
|
+ //手机号
|
|
|
+ re1 := regexp.MustCompile("1[345789]{1}\\d{9}")
|
|
|
+ detail1 := re1.ReplaceAllString(detail, `<span class="freeView">点击查看</span>`)
|
|
|
+ code := util.InterfaceToStr(obj["projectcode"])
|
|
|
+ if code != "" {
|
|
|
+ detail1 = strings.ReplaceAll(detail1, code, "*********")
|
|
|
}
|
|
|
- if len(idObjs) > index {
|
|
|
- winnerId = util.ObjToString(idObjs[index])
|
|
|
+ //座机
|
|
|
+ re2 := regexp.MustCompile("((0\\d{2,3})-)(\\d{7,8})(-(\\d{3,}))?")
|
|
|
+ detail2 := re2.ReplaceAllString(detail1, `<span class="freeView">点击查看</span>`)
|
|
|
+ re4 := regexp.MustCompile("((400)-)(\\d{3,4}-)(\\d{3,})")
|
|
|
+ detail4 := re4.ReplaceAllString(detail2, `<span class="freeView">点击查看</span>`)
|
|
|
+ //邮箱
|
|
|
+ re3 := regexp.MustCompile("([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)")
|
|
|
+ detail3 := re3.ReplaceAllString(detail4, `<span class="freeView">点击查看</span>`)
|
|
|
+ obj["detail"] = strings.ReplaceAll(strings.ReplaceAll(detail3, `<span class="freeView">点击查看</span><span class="freeView">点击查看</span>`, `<span class="freeView">点击查看</span>`), "*********", code)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if obj["projectname"] != nil {
|
|
|
+ s.SetSession("projectname", obj["projectname"])
|
|
|
+ }
|
|
|
+ if obj["entidlist"] != nil { //大会员中标企业跳转至画像
|
|
|
+ if winner := util.ObjToString(obj["winner"]); winner != "" {
|
|
|
+ s_winner := util.ObjToString(obj["s_winner"])
|
|
|
+ idObjs, _ := obj["entidlist"].([]interface{})
|
|
|
+ winnerId := ""
|
|
|
+ if names := strings.Split(s_winner, ","); len(names) > 1 {
|
|
|
+ index := 0
|
|
|
+ for i := 0; i < len(names); i++ {
|
|
|
+ if names[i] == winner {
|
|
|
+ index = i
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(idObjs) > index {
|
|
|
+ winnerId = util.ObjToString(idObjs[index])
|
|
|
+ }
|
|
|
+ } else { //中标企业仅一个
|
|
|
+ if len(idObjs) > 0 {
|
|
|
+ winnerId = util.ObjToString(idObjs[0])
|
|
|
+ }
|
|
|
}
|
|
|
- } else { //中标企业仅一个
|
|
|
- if len(idObjs) > 0 {
|
|
|
- winnerId = util.ObjToString(idObjs[0])
|
|
|
+ if winnerId != "" && winnerId != "-" {
|
|
|
+ obj["entId"] = util.EncodeArticleId2ByCheck(winnerId)
|
|
|
}
|
|
|
}
|
|
|
- if winnerId != "" && winnerId != "-" {
|
|
|
- obj["entId"] = util.EncodeArticleId2ByCheck(winnerId)
|
|
|
- }
|
|
|
}
|
|
|
+ } else {
|
|
|
+ obj = map[string]interface{}{
|
|
|
+ "title": obj["title"],
|
|
|
+ "_id": obj["_id"],
|
|
|
+ }
|
|
|
+ }
|
|
|
+ obj["urlpath"] = s.Uri()
|
|
|
+ obj["industry"] = industry
|
|
|
+ if ssOpenid != nil {
|
|
|
+ obj["ucbsId"] = util.EncodeArticleId2ByCheck("ucbs#" + ssOpenid.(string) + "#" + id)
|
|
|
}
|
|
|
+ s.T["obj"] = obj
|
|
|
s.T["url"] = s.Uri()
|
|
|
|
|
|
content, _ := s.Render4Cache("/pc/biddetail_rec.html", &s.T)
|