|
@@ -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 != "" {
|