Skip to content

Commit

Permalink
feat: 兼容验证码获取
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyueyi committed Aug 15, 2023
1 parent 8489f0d commit 838a70f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,12 @@ <h2 class="title">添加二哥微信备注星球,审核更快</h2>
$.ajax({
url: "/login/fetch?deviceId=" + deviceId, type: "get", dataType: "text", success: function (data) {
console.log("data>>>>>>>>: ", data);
if (data != 'fail') {
codeTag.text(code);
try {
window.clearInterval(intHook);
} catch (e) {}
}
},
error: function (e) {
console.log("some error! ", e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public String resend() throws IOException {
if (lastSse != null) {
lastSse.send("resend!");
lastSse.send("init#" + oldCode);
return "ok";
return oldCode;
}
return "fail";
}
Expand Down

0 comments on commit 838a70f

Please sign in to comment.