13 lines
314 B
Go
13 lines
314 B
Go
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)
|
|
}
|