wcj 5 жил өмнө
parent
commit
5463c46477

+ 1 - 1
src/jfw/modules/subscribepay/src/a/init.go

@@ -18,7 +18,7 @@ func init() {
 	xweb.RootApp().AppConfig.EnableHttpCache = false
 	xweb.RootApp().AppConfig.Mode = xweb.Product
 	xweb.RootApp().AppConfig.ReloadTemplates = true
-	xweb.RootApp().AppConfig.SessionTimeout = 30 * time.Minute
+	xweb.RootApp().AppConfig.SessionTimeout = 7 * 24 * time.Hour
 	xweb.RootApp().Logger.SetOutputLevel(1) //输出日志,改为4则不输出任何日志
 	//
 	xweb.AddRouter("/subscribepay", &service.AfterPay{})

+ 3 - 2
src/jfw/modules/subscribepay/src/timetask/timetask.go

@@ -99,8 +99,9 @@ func checkIsExpire() {
 						"i_vip_expire_tip": 2,
 					},
 				})
-				util.MQFW.Del("pushspace_temp", map[string]interface{}{"userid": _id})
-				util.MQFW.Del("pushspace", map[string]interface{}{"userid": _id})
+				for _, pushColl := range []string{"pushspace", "pushspace_temp", "pushspace_vip", "pushspace_fail"} {
+					util.MQFW.Del(pushColl, map[string]interface{}{"userid": _id})
+				}
 				log.Println("用户", _id, i_vip_status, l_vip_endtime, "修改已到期状态")
 			} else if l_vip_endtime-now_unix <= threeday && i_vip_expire_tip != 1 && i_vip_expire_tip != -1 {
 				updateOk := util.MQFW.UpdateById("user", _id, map[string]interface{}{

+ 1 - 1
src/main.go

@@ -100,7 +100,7 @@ func initXweb() {
 	xweb.RootApp().AppConfig.Mode = xweb.Product
 	xweb.RootApp().SetConfig("schecm", Sysconfig["agreement"])
 	xweb.RootApp().AppConfig.ReloadTemplates = true
-	xweb.RootApp().AppConfig.SessionTimeout = 30 * time.Minute
+	xweb.RootApp().AppConfig.SessionTimeout = 7 * 24 * time.Hour
 	xweb.RootApp().AppConfig.CacheTemplates = Sysconfig["cacheflag"].(bool)
 	xweb.RootApp().AddTmplVar("Msg", tag.Msg)
 	xweb.RootApp().AddTmplVar("Ad", tag.Ad)