iDerekLi / juejin-helper

稀土掘金助手:签到、抽奖、沾喜气、消除Bug、海底掘金游戏、自动化工作流。
https://juejin.cn/post/7005379088491741215
Apache License 2.0
257 stars 1.11k forks source link

沾喜气好像有问题,执行后幸运值没变化 #6

Closed BIGMONK closed 2 years ago

iDerekLi commented 2 years ago

沾喜气示例请参考如下:

const growth = juejin.growth();

const luckyusersResult = await growth.getLotteriesLuckyUsers();
if (luckyusersResult.count > 0) {
  const no1LuckyUser = luckyusersResult.lotteries[0];
  const dipLuckyResult = await growth.dipLucky(no1LuckyUser.history_id);
  if (dipLuckyResult.has_dip) {
    console.log(`今天你已经沾过喜气,明天再来吧!`);
  } else {
    console.log(`沾喜气 +${dipLuckyResult.dip_value} 幸运值`);
  }
}
BIGMONK commented 2 years ago

actions记录可以看到执行代码走了catch,但是没有具体输出

iDerekLi commented 2 years ago

问题已修复

新版本已发布, 自动化已经同步, 手动构建再次检查.

BIGMONK commented 2 years ago

运行成功,谢谢