网页版联通沃阅读每天自动领取1GB
已锁定
活动优惠
-
kuhoo 说:
感谢大佬!
CentOS 下执行
git clone https://github.com/mexxcheng/iread_signin.git cd iread_signin/ npm install node index.js
可以利用crontab 每天执行一下!
不过一定将account添加到 index.jscrontab -e #加入以下代码,每天3点执行 00 03 * * * cd /root/iread_signin && node index.js > /dev/null 2>&1
不过有一个报错:
(node:24381) UnhandledPromiseRejectionWarning: ReferenceError: readGiftResult is not defined at Promise (/root/iread_signin/lib/signin.js:21:39) at process._tickCallback (internal/process/next_tick.js:68:7) (node:24381) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:24381) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
-
这玩意儿可以用actions就好了