|
@@ -101,7 +101,8 @@ func (sk *AnonymousAuth) Do() {
|
|
|
if jyTrustedId == nil || jyTrustedId.Value == "" { //不存在信用标识
|
|
|
jyGuestUID, _ := sk.R.Cookie("JYGuestUID")
|
|
|
if jyGuestUID == nil || jyGuestUID.Value == "" { //不存在后端id 生成后端id 并创建匿名身份信息
|
|
|
- if sk.R.Method != "GET" { //避免多请求
|
|
|
+ contentType := sk.R.Header.Get("Content-Type")
|
|
|
+ if sk.R.Method != "GET" || !strings.Contains(contentType, "text/html") { //避免多请求
|
|
|
return
|
|
|
}
|
|
|
guestUID := node.Generate()
|