diff --git a/source/_posts/20230329gt.md b/source/_posts/20230329gt.md index 1a2e1bb5..a9cf9d64 100644 --- a/source/_posts/20230329gt.md +++ b/source/_posts/20230329gt.md @@ -34,6 +34,7 @@ initGeetest4( var result = captcha.getValidate(); fetch("https://api.zhangsifan.com/geetest/validate_v4", { method: "POST", + body: JSON.stringify(result), }).then(async (response) => { const { result } = await response.json(); if (result.success) { diff --git a/source/_posts/20230330gt.md b/source/_posts/20230330gt.md index 08af600c..505e48ab 100644 --- a/source/_posts/20230330gt.md +++ b/source/_posts/20230330gt.md @@ -36,6 +36,7 @@ fetch("https://api.zhangsifan.com/geetest/register?").then(async (response) => { console.log(result); fetch("https://api.zhangsifan.com/geetest/validate", { method: "POST", + body: JSON.stringify(result), }).then(async (response) => { const { result } = await response.json(); if (result.success) {