feat: publish sanitized custom.97 source
This commit is contained in:
1022 files changed
+69903
-19207
No files matched your search
@@ -17,10 +17,7 @@ func TurnstileCheck() gin.HandlerFunc {
|
||||
if common.TurnstileCheckEnabled {
|
||||
response := c.Query("turnstile")
|
||||
if response == "" {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": false,
|
||||
"message": "Turnstile token 为空",
|
||||
})
|
||||
common.ApiErrorT(c, "Turnstile token is empty")
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
@@ -51,10 +48,7 @@ func TurnstileCheck() gin.HandlerFunc {
|
||||
return
|
||||
}
|
||||
if !res.Success {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": false,
|
||||
"message": "Turnstile 校验失败,请刷新重试!",
|
||||
})
|
||||
common.ApiErrorT(c, "Turnstile verification failed, please refresh and try again!")
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user