GithubHelp home page GithubHelp logo

unicomtask-docker's Introduction

功能

  • 沃之树领流量、浇水(12M日流量)
  • 每日签到(1积分+翻倍4积分+第七天1G流量日包)
  • 天天抽奖,每天三次免费机会(随机奖励)
  • 游戏中心每日打卡(连续打卡,积分递增至最高7,第七天1G流量日包)
  • 每日领取100定向积分
  • 积分抽奖,每天最多抽30次(中奖几率渺茫)
  • 冬奥积分活动(第1和7天,可领取600定向积分,其余领取300定向积分,有效期至下月底)
  • 获取每日1G流量日包(截止日期暂时不知道)
  • 邮件、钉钉、Tg、企业微信等推送运行结果

使用方法

docker

#拉取镜像
docker pull srcrs/unicomtask
#运行镜像->容器
docker run -itd --name unicomtask srcrs/unicomtask
#进入容器
docker exec -it unicomtask bash
#启动cron,默认是关闭状态
service cron start
cd root
#将账户信息填写到 config.json
vim config.json
exit

完成上述操作后,容器中每天会自动跑两个脚本,一个会在6:30的时候自动执行任务,一个会在5:00自动更新最新代码。

腾讯云函数

已经对云函数有过了解,并且已在腾讯云开通过云函数功能。

通过yaml文件

需要本地具备npm环境

  • git clone https://github.com/srcrs/UnicomTask-docker.git

  • npm install -g serverless

  • cd ./UnicomTask-docker/serverless/tencent-scf

  • sls deploy --debug

  • 微信扫码登陆

  • 进入到unicom-Task容器中,在config.json填写账号信息,点击测试,手动运行一次,如果能够正常运行就说明部署成功。

通过zip包

  1. releases下载最新的unicomtask-tenscf.zip包

  2. 进入 创建自定义云函数

  3. 必要配置

  • (1) 函数代码 --> 选择本地上传zip包 --> 上传unicomtask-tenscf.zip
  • (2) 高级配置 --> 环境配置 --> 执行超时时间设置为 900
  • (3) 触发器配置 --> 自定义创建 --> 触发周期 --> 自定义出发周期 --> Cron表达式 --> 0 30 6 * * * *
  1. 点击完成。最后,进入到刚才创建的云函数,找到config.json填写账号信息,点击测试,手动运行一次,如果能够正常运行就说明部署成功。

注:最后一步在config.json填写账号信息,也可以先把unicomtask-tenscf.zip解压,待config.json信息完善后,再进行压缩。就不用在第4步完善测试了。

unicomtask-docker's People

Contributors

srcrs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.