1 Star 3 Fork 1

boris1993 / tiantang-auto-harvest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

甜糖星愿自动签到、采集工具

Docker Hub Pulls Build and publish the image FOSSA Status

每日自动签到,自动收取推广星愿和设备星愿。

目前功能:

  • 每日签到
  • 多推送平台支持 - Server酱、Bark、钉钉机器人
  • 自动收取推广星愿和设备星愿
  • 自动激活电费卡
  • token过期后自动刷新登录

使用

如果你使用Docker ComposePortainer管理Docker容器,那么可以使用该docker-compose.yml

---
version: '3'

services:
  tiantang-auto-harvest:
    image: boris1993/tiantang-auto-harvest:latest
    container_name: tiantang-auto-harvest
    restart: always
    volumes:
      # 备份数据库文件
      - /volume2/docker-data/tiantang-auto-harvest:/app/data
    environment:
      - TZ=Asia/Shanghai
      # 启用调试日志,如果没有问题的话不需要打开这个开关
      # - ASPNETCORE_ENVIRONMENT=Development
    ports:
      # 管理页面端口
      - "8080:80"

或者可以使用如下Docker命令启动:

docker run \
    --restart always \
    --name tiantang-auto-harvest \
    -p 8080:80 \
    -v /volume2/docker-data/tiantang-auto-harvest:/app/data \
    -e TZ=Asia/Shanghai \
    # 启用调试日志,如果没有问题的话不需要打开这个开关
    # -e ASPNETCORE_ENVIRONMENT=Development
    -d \
    boris1993/tiantang-auto-harvest:latest

如果从Docker Hub拉取镜像过慢,那么你也可以使用registry.cn-hangzhou.aliyuncs.com/boris1993/tiantang-auto-harvest:latest来从阿里云拉取。

再启动后,需要访问容器的端口(如上例中的8080)进入配置页面。在配置页面中你需要通过手机验证码登录。

如果有需要,那么可以填写Server酱Bark的token,配置后即可收到通知。 目前通知内容包括:

  • 每日收取的星愿数

arm v7平台的用户需要注意

对于arm v7用户,如果你用上述命令无法启动,具体表现为容器反复重启,那么请删掉容器,然后执行如下命令以进入容器的bash shell:

docker run -it --rm --entrypoint /bin/bash boris1993/tiantang-auto-harvest:latest

然后在容器的shell内执行 dotnet tiantang-auto-harvest.dll, 如果出现错误信息 Aborted (core dumped),那么请在上述启动命令的参数中加上--privileged

推广码

如果你觉得这个工具好用,那么可不可以填一下我的邀请码804744,互惠互利?

赞赏码

许可协议

该项目遵照MIT License开放源代码。

Copyright 2021 boris1993 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

每日自动收取甜糖星愿,自动激活电费卡 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/boris1993/tiantang-auto-harvest.git
git@gitee.com:boris1993/tiantang-auto-harvest.git
boris1993
tiantang-auto-harvest
tiantang-auto-harvest
master

搜索帮助