Skip to content

Commit

Permalink
fix: 需要检查免费礼包是否null
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebartin committed Apr 21, 2023
1 parent 4402b7c commit a6b3477
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NIKKE/NIKKE日常.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ function cashShop() {
clickRect(btn);
let [free, color] = ocrUntilFound((res, img) => {
let t = res.find(e => e.text.includes(name + '免'));
if (!t)
return null;
return [t, img.pixel(t.bounds.left, t.bounds.bottom + 5)];
}, 20, 700);
if (rgbToGray(color) < 50)
Expand Down

0 comments on commit a6b3477

Please sign in to comment.