feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+2 -8
View File
@@ -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
}