Skip to content

Commit

Permalink
0.19: 修改領取獎勵邏輯
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Smilin committed Apr 29, 2024
1 parent 5930701 commit 11613d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ async function claimCredit(page) {
await page.click(
"section > div > div:nth-of-type(2) > div:nth-of-type(2) > button"
);
await delay(2000);
await delay(300);
await page.reload();
await delay(5000);
const updatedClaimBtnText = await page.$eval(
"section > div > div:nth-of-type(2) > div:nth-of-type(2) > button > span",
(el) => el.innerText
Expand All @@ -234,8 +236,6 @@ async function claimCredit(page) {
if (!(await checkPopup(page))) {
await delay(500);
if (!isClaimed) {
await page.reload();
await delay(2000);
continue checkIsClaimed;
} else {
console.log("已領取獎勵");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auto-pixai",
"version": "0.18",
"version": "0.19",
"description": "自動領取pixai.art獎勵",
"main": "app.js",
"scripts": {
Expand Down

0 comments on commit 11613d9

Please sign in to comment.