FDUCSLG / pafd-automated

120 stars 1.51k forks source link

是否能实现打卡时间随机化 #9

Open CyberParrows opened 3 years ago

CyberParrows commented 3 years ago

比如8:00~17:00随机时间进行打卡,使打卡时间更自然

530243954 commented 2 years ago

应该不是很难

530243954 commented 2 years ago

我之前写了个本地的是可以实现的,但我觉得代码略微有点复杂。 然后刚刚看隔壁的代码,好像随机加一个sleep的时间就好了?

FY-Han @.***> 于2021年10月27日周三 下午11:47写道:

问了作者,说不太好实现,正在研究

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FDUCSLG/pafd-automated/issues/9#issuecomment-953060020, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALGS4XBAB35FANH2MFBRYILUJANIDANCNFSM5E7UKCSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

SunflowerAries commented 2 years ago

Github Actions 超出一定额度是要计费的,https://docs.github.com/cn/billing/managing-billing-for-github-actions/about-billing-for-github-actions 。如果要加 sleep 的话,这个进程相当于一直开着,时间跨度太大的话,就会超出免费额度,对于平时要使用 Github Actions 做其他任务的同学来说不太友好。可以开一个新的分支,设置一个一小时左右的随机时长给只用 Github 来打卡的同学。(Github 单个任务的时长为 6 小时,https://docs.github.com/cn/actions/learn-github-actions/usage-limits-billing-and-administration

liuyiqi1999 commented 2 years ago

七天设置不同的定时时间,可以降低被发现的概率