上报数据开关
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful

This commit is contained in:
zhbaor 2025-01-01 11:46:43 +08:00
parent 5b20470e6f
commit 8176461385
5 changed files with 140 additions and 47 deletions

View file

@ -21,7 +21,7 @@ class CreditSolver(SceneGraphSolver):
if not config.conf.visit_friend:
return True
self.wait_times = 5
self.info_uploaded = False
self.info_uploaded = not config.conf.telemetry
return super().run()
def upload_data(self):

View file

@ -137,6 +137,8 @@ class ExtraPart(ConfModel):
"截图保留时长(小时)"
waiting_scene_v2: WaitingSceneConf
"等待时间"
telemetry: bool = True
"上报数据"
class FightPart(ConfModel):

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -31,12 +31,91 @@ const { conf } = storeToRefs(store)
<n-checkbox v-model:checked="conf.check_mail_enable">
<div class="item">领取邮件</div>
</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-divider />
<n-checkbox v-model:checked="conf.visit_friend">
<div class="item">访问好友</div>
</n-checkbox>
<n-flex>
<n-checkbox v-model:checked="conf.visit_friend">
<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-flex>
<n-checkbox v-model:checked="conf.report_enable">
@ -85,4 +164,16 @@ const { conf } = storeToRefs(store)
.n-divider:not(.n-divider--vertical) {
margin: 6px 0;
}
.telemetry {
border-collapse: collapse;
table-layout: fixed;
margin-bottom: 6px;
}
th,
td {
border: 1px solid white;
padding: 2px 6px;
}
</style>