This commit is contained in:
parent
5b20470e6f
commit
8176461385
5 changed files with 140 additions and 47 deletions
|
@ -21,7 +21,7 @@ class CreditSolver(SceneGraphSolver):
|
||||||
if not config.conf.visit_friend:
|
if not config.conf.visit_friend:
|
||||||
return True
|
return True
|
||||||
self.wait_times = 5
|
self.wait_times = 5
|
||||||
self.info_uploaded = False
|
self.info_uploaded = not config.conf.telemetry
|
||||||
return super().run()
|
return super().run()
|
||||||
|
|
||||||
def upload_data(self):
|
def upload_data(self):
|
||||||
|
|
|
@ -137,6 +137,8 @@ class ExtraPart(ConfModel):
|
||||||
"截图保留时长(小时)"
|
"截图保留时长(小时)"
|
||||||
waiting_scene_v2: WaitingSceneConf
|
waiting_scene_v2: WaitingSceneConf
|
||||||
"等待时间"
|
"等待时间"
|
||||||
|
telemetry: bool = True
|
||||||
|
"上报数据"
|
||||||
|
|
||||||
|
|
||||||
class FightPart(ConfModel):
|
class FightPart(ConfModel):
|
||||||
|
|
2
ui/dist/assets/main.css
vendored
2
ui/dist/assets/main.css
vendored
File diff suppressed because one or more lines are too long
82
ui/dist/assets/main.js
vendored
82
ui/dist/assets/main.js
vendored
File diff suppressed because one or more lines are too long
|
@ -31,12 +31,91 @@ const { conf } = storeToRefs(store)
|
||||||
<n-checkbox v-model:checked="conf.check_mail_enable">
|
<n-checkbox v-model:checked="conf.check_mail_enable">
|
||||||
<div class="item">领取邮件</div>
|
<div class="item">领取邮件</div>
|
||||||
</n-checkbox>
|
</n-checkbox>
|
||||||
<n-checkbox v-model:checked="conf.delete_read_mail">删除已读邮件</n-checkbox>
|
<n-checkbox :disabled="!conf.check_mail_enable" v-model:checked="conf.delete_read_mail">
|
||||||
|
删除已读邮件
|
||||||
|
</n-checkbox>
|
||||||
</n-flex>
|
</n-flex>
|
||||||
<n-divider />
|
<n-divider />
|
||||||
<n-checkbox v-model:checked="conf.visit_friend">
|
<n-flex>
|
||||||
<div class="item">访问好友</div>
|
<n-checkbox v-model:checked="conf.visit_friend">
|
||||||
</n-checkbox>
|
<div class="item">访问好友</div>
|
||||||
|
</n-checkbox>
|
||||||
|
<n-checkbox :disabled="!conf.visit_friend" v-model:checked="conf.telemetry">
|
||||||
|
上报数据
|
||||||
|
</n-checkbox>
|
||||||
|
<help-text>
|
||||||
|
<table class="telemetry">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 140px">数据</th>
|
||||||
|
<th style="width: 200px">获取方式</th>
|
||||||
|
<th style="width: 100px">用途</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>游戏内昵称</td>
|
||||||
|
<td>OCR</td>
|
||||||
|
<td>用户数量统计</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>CPU型号</td>
|
||||||
|
<td><code>platform.processor()</code></td>
|
||||||
|
<td rowspan="5">性能分析</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>CPU线程数</td>
|
||||||
|
<td><code>os.cpu_count()</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>模拟器类型</td>
|
||||||
|
<td rowspan="2">用户填写</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>截图方式</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>平均截图时间</td>
|
||||||
|
<td>截图时自动计算</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>mower-ng代码分支</td>
|
||||||
|
<td rowspan="2">Git</td>
|
||||||
|
<td rowspan="2">更新行为分析</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>mower-ng版本</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<n-flex>
|
||||||
|
<div>
|
||||||
|
客户端代码:
|
||||||
|
<n-button
|
||||||
|
text
|
||||||
|
tag="a"
|
||||||
|
href="https://git.zhaozuohong.vip/mower-ng/mower-ng/src/branch/main/mower/solvers/credit.py"
|
||||||
|
target="_blank"
|
||||||
|
type="primary"
|
||||||
|
>
|
||||||
|
credit.py
|
||||||
|
</n-button>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
服务端代码:
|
||||||
|
<n-button
|
||||||
|
text
|
||||||
|
tag="a"
|
||||||
|
href="https://git.zhaozuohong.vip/mower-ng/stats/src/branch/main/main.py"
|
||||||
|
target="_blank"
|
||||||
|
type="primary"
|
||||||
|
>
|
||||||
|
main.py
|
||||||
|
</n-button>
|
||||||
|
</div>
|
||||||
|
</n-flex>
|
||||||
|
</help-text>
|
||||||
|
</n-flex>
|
||||||
<n-divider />
|
<n-divider />
|
||||||
<n-flex>
|
<n-flex>
|
||||||
<n-checkbox v-model:checked="conf.report_enable">
|
<n-checkbox v-model:checked="conf.report_enable">
|
||||||
|
@ -85,4 +164,16 @@ const { conf } = storeToRefs(store)
|
||||||
.n-divider:not(.n-divider--vertical) {
|
.n-divider:not(.n-divider--vertical) {
|
||||||
margin: 6px 0;
|
margin: 6px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.telemetry {
|
||||||
|
border-collapse: collapse;
|
||||||
|
table-layout: fixed;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
border: 1px solid white;
|
||||||
|
padding: 2px 6px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Reference in a new issue