|
@@ -39,6 +39,7 @@ var suffix_msgt = "_SX"
|
|
|
func (s *Short) Article(stype, id string) error {
|
|
|
//先判断是否有session
|
|
|
userId, _ := s.GetSession("userId").(string)
|
|
|
+ log.Printf("三级页userid:%s", userId)
|
|
|
//if userId == "" {
|
|
|
// return s.Redirect("/jyapp/free/swordfish/about", 302)
|
|
|
//}
|
|
@@ -208,8 +209,6 @@ func (s *Short) Article(stype, id string) error {
|
|
|
obj["entId"] = entIdArr
|
|
|
obj["winnerMap"] = winnerMap
|
|
|
}
|
|
|
- s.T["userId"] = se.Encode2Hex(userId) //加密用户userid
|
|
|
-
|
|
|
//判断是否公开联系人信息
|
|
|
if util.Int64All(obj["buyerhint"]) == 2 {
|
|
|
obj["buyerperson"] = ""
|
|
@@ -251,6 +250,7 @@ func (s *Short) Article(stype, id string) error {
|
|
|
"subtype": obj["subtype"],
|
|
|
}
|
|
|
}
|
|
|
+ s.T["userId"] = se.Encode2Hex(userId) //加密用户userid
|
|
|
}
|
|
|
s.T["forceShareFlag"] = public.CheckUserNeedForceShare(userId, public.ShareType_detail)
|
|
|
s.T["rewardText"], s.T["advertText"] = getRewardText()
|