Skip to content

Commit

Permalink
增加库街区鸣潮版的签到功能
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn01234 committed Jan 4, 2025
1 parent 982d331 commit 16f0aa6
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 1 deletion.
29 changes: 28 additions & 1 deletion assets/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@
],
"task": [
{
"name": "签到",
"name": "米游社签到",
"entry": "MihoyoBBS",
"option": [
"关闭米游社"
]
},
{
"name": "库街区签到",
"entry": "KJQ",
"option": [
"关闭库街区"
]
}
],
"option": {
Expand All @@ -42,6 +49,26 @@
}
}
]
},
"关闭库街区": {
"cases": [
{
"name": "启用",
"pipeline_override": {
"CloseKJQ": {
"enabled": true
}
}
},
{
"name": "禁用",
"pipeline_override": {
"CloseKJQ": {
"enabled": false
}
}
}
]
}
}
}
Binary file added assets/resource/base/image/Receive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 107 additions & 0 deletions assets/resource/base/pipeline/KJQ.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"KJQ": {
"next": [
"IgnoreKJQTeenageMode",
"EnterKJQSignInPage",
"Sub_StartKJQ"
]
},
"Sub_StartKJQ": {
"post_delay": 10000,
"is_sub": true,
"action": "StartApp",
"package": "com.kurogame.kjq"
},
"IgnoreKJQTeenageMode": {
"recognition": "OCR",
"expected": [
"我知道了"
],
"roi": [
0,
0,
0,
0
],
"action": "Click",
"next": [
"EnterKJQSignInPage"
]
},
"EnterKJQSignInPage": {
"recognition": "OCR",
"expected": [
"签到奖励"
],
"roi": [
0,
0,
0,
0
],
"action": "Click",
"post_delay": 10000,
"next": [
"EnterSignInBenefitsPage2",
"KJQSwipeUp"
]
},
"EnterSignInBenefitsPage2": {
"recognition": "TemplateMatch",
"threshold": 0.7,
"green_mask": true,
"template": "Receive.png",
"roi": [
0,
0,
0,
0
],
"action": "Click",
"next": [
"SignInSuccessful2"
]
},
"KJQSwipeUp": {
"action": "Swipe",
"begin": [
100,
600,
10,
10
],
"end": [
100,
100,
10,
10
],
"next": [
"EnterSignInBenefitsPage2",
"CloseKJQ",
"StopKJQ"
]
},
"SignInSuccessful2": {
"recognition": "OCR",
"expected": [
"签到成功"
],
"roi": [
0,
0,
0,
0
],
"next": [
"CloseKJQ",
"StopKJQ"
]
},
"CloseKJQ": {
"enabled": false,
"action": "StopApp",
"package": "com.kurogame.kjq"
},
"StopKJQ": {}
}

0 comments on commit 16f0aa6

Please sign in to comment.