以下参数无需手动增加,可通过下方 Account 初始化并扫码登录自动获取
accounts:
- phone: "手机号码,仅用作唯一标识,暂无实际作用"
device:
id: "设备标识,uuid,登录后建议不要修改"
type: "手机类型,默认 2 为安卓"
name: "手机型号,默认 Xiaomi 22011211C"
model: "手机型号,默认 22011211C"
version: "手机安卓版本,默认 13"
channel: "渠道,默认 miyousheluodi"
uid: "米游社 uid"
gtoken: "game token,废弃"
ctoken: "cookie token"
mid: "米哈游 uid"
stoken: "stoken v2"
sign_game_ids: [ "游戏签到的游戏 id 列表,为空时签到所有游戏角色" ]
cron:
spec: "签到奖励执行时间,默认 5 4 8 * * * 即每天 08:04:05"
startup: "是否启动时执行一次,默认 false"
# 打码平台配置
rrocr:
key: "from rrocr.com"
ttocr:
key: "from ttocr.com"
interval: 3s
timeout: 90s
item_id: 388
> miyoushe-task -h
Usage:
miyoushe-task [command]
Available Commands:
account Manage accounts
config Manage config
cron Run as cron job
notify Manage notify
sign Run sign task
Flags:
-c, --config string path to config file
-h, --help help for miyoushe-task
-v, --version version for miyoushe-task
Use "miyoushe-task [command] --help" for more information about a command.
# list accounts
miyoushe-task account list
# init account device information
miyoushe-task account init <account phone>
# login account by send phone code to get token
miyoushe-task account login <account phone>
如果登录时出现验证码, 下载项目中 geetest.html 文件,本地打开文件后输入 gt
和 challenge
,复制极验结果。
aigis gt: abc, challenge: xyz
please enter GeeTest json string: {"geetest_challenge":"123","geetest_validate":"456","geetest_seccode":"789|jordan"}
miyoushe-task sign forum <account phone>
miyoushe-task sign game <account phone>
miyoushe-task cron
# register as system service
miyoushe-task service --user --config miyoushe-task.yaml install
miyoushe-task service start
miyoushe-task service status
mkdir miyoushe && touch miyoushe/app.yaml
docker run -it --rm -v $(pwd)/miyoushe:/miyoushe -e DEBUG=true starudream/miyoushe-task /miyoushe-task -c /miyoushe/app.yaml account init <account phone>
docker run -it --rm -v $(pwd)/miyoushe:/miyoushe -e DEBUG=true starudream/miyoushe-task /miyoushe-task -c /miyoushe/app.yaml account login <account phone>
docker run -it --rm -v $(pwd)/miyoushe:/miyoushe -e DEBUG=true starudream/miyoushe-task /miyoushe-task -c /miyoushe/app.yaml sign game <account phone>
version: "3"
services:
miyoushe:
image: starudream/miyoushe-task
container_name: miyoushe
restart: always
command: /miyoushe-task -c /miyoushe/app.yaml cron
volumes:
- "./miyoushe/:/miyoushe"
environment:
DEBUG: "true"
app.log.console.level: "info"
app.log.file.enabled: "true"
app.log.file.level: "debug"
app.log.file.filename: "/miyoushe/app.log"
app.cron.spec: "5 4 8 * * *"
app.rrocr.key: "foo"