@@ -0,0 +1,12 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"videoweb/app/service/authser"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// TryJSONSessionRecover 上游返回会话失效时重建游客会话;返回 true 表示调用方应重试一次。
|
||||
func TryJSONSessionRecover(c *gin.Context, code int) bool {
|
||||
return authser.RecoverContentSession(c, code)
|
||||
}
|
||||
Reference in New Issue
Block a user