|
@@ -33,7 +33,7 @@ func (s *Subscribe) Update() {
|
|
|
vSwitch = s.GetString("vSwitch")
|
|
|
)
|
|
|
//校验是否剑鱼员工
|
|
|
- if ent_id == g.Cfg().MustGet(s.Request.Context(), "powerEntId", 25917).Int() {
|
|
|
+ if ent_id == g.Cfg().MustGet(s.Request.Context(), "powerEntId", 25917).Int() && strings.Index(s.Refer(), "/free/help/set_subscribe") > -1 {
|
|
|
if helpUserId := s.Cookie("usrDewkYanV3"); helpUserId != "" {
|
|
|
if identityInfo := util.HelpSubscribeDecode(helpUserId); identityInfo.UserId != "" {
|
|
|
userId = identityInfo.UserId
|
|
@@ -88,7 +88,7 @@ func (s *Subscribe) SetUserInfo() {
|
|
|
sessionMap = s.Session().GetMultiple()
|
|
|
)
|
|
|
//校验是否剑鱼员工
|
|
|
- if entId == g.Cfg().MustGet(s.Request.Context(), "powerEntId", 25917).Int() {
|
|
|
+ if entId == g.Cfg().MustGet(s.Request.Context(), "powerEntId", 25917).Int() && strings.Index(s.Refer(), "/free/help/set_subscribe") > -1 {
|
|
|
if helpUserId := s.Cookie("usrDewkYanV3"); helpUserId != "" {
|
|
|
if identityInfo := util.HelpSubscribeDecode(helpUserId); identityInfo.UserId != "" {
|
|
|
userId = identityInfo.UserId
|