wangchuanjin 3 years ago
parent
commit
713ba2cb5c
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/jfw/modules/app/src/app/front/swordfish.go

+ 6 - 4
src/jfw/modules/app/src/app/front/swordfish.go

@@ -496,10 +496,12 @@ func (m *Front) WxpushViewPaging() {
 
 //历史推送
 func (f *Front) Historypush() error {
-	if f.GetString("t") == "member" {
-		f.SetSession(jy.SwitchService.SessionKey, jy.SwitchService.Member)
-	} else if f.GetString("t") != "" {
-		f.SetSession(jy.SwitchService.SessionKey, jy.SwitchService.Vip)
+	if f.GetString("f") == "push" {
+		if f.GetString("t") == "member" {
+			f.SetSession(jy.SwitchService.SessionKey, jy.SwitchService.Member)
+		} else {
+			f.SetSession(jy.SwitchService.SessionKey, jy.SwitchService.Vip)
+		}
 	}
 	userId, _ := f.GetSession("userId").(string)
 	if userId != "" {