Skip to content

Commit

Permalink
1.1.2: 成功領取時添加退出代碼,避免 Docker 一直報錯
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Smilin committed May 31, 2024
1 parent 2f6c228 commit 4423d4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,5 +326,8 @@ async function claimCredit(page) {
//#endregion

loginAndScrape(url, username, password, isDocker, headless)
.then(() => console.log("領取完畢"))
.then(() => {
console.log("領取完畢");
process.exit(0);
})
.catch((error) => console.error("異常:", error));
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": "1.1.1",
"version": "1.1.2",
"description": "自動領取pixai.art獎勵",
"main": "app.js",
"scripts": {
Expand Down

0 comments on commit 4423d4f

Please sign in to comment.