[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
krapnikkk committed Feb 26, 2020
1 parent 4d8873e commit 399b7ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,7 @@ function buildOperate() {
spanTextInput.setAttribute("style", "width:80vw;height: 25px;border: solid 1px #000;border-radius: 5px;margin: 10px auto;display: block;");
receiveTimerBtn.innerHTML = "定时指定领取";
receiveTimerBtn.addEventListener("click", () => {
const span = Math.trunc(+spanTextInput.value);
if (!span) {
alert("请检查输入的提交频率是否有误!(只能为大于0的数字)");
return false;
}
Config.postSpan = span;

Config.postSpan = parseInt(spanTextInput.value) > 0 ? parseInt(spanTextInput.value) : 500;
Config.postCount = parseInt(receiveCountInput.value) > 0 ? parseInt(receiveCountInput.value) : 1;
const time = Utils.formateTime(receiveTextInput.value);
// console.log(time);
Expand Down
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

0 comments on commit 399b7ef

Please sign in to comment.