Merge pull request #53 from rainbowwarmth/main

自定义绑定设备下载url
This commit is contained in:
bietiaop 2024-08-19 10:31:32 +08:00 committed by GitHub
commit a3ca1bb11e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 1 deletions

View file

@ -89,7 +89,7 @@ export class Panel extends ZZZPlugin {
async bindDeviceHelp() {
const msgs = [
'绑定设备帮助',
'https://mirror.ghproxy.com/https://raw.githubusercontent.com/forchannot/get_device_info/main/app/build/outputs/apk/debug/app-debug.apk',
settings.getConfig('config')?.url,
'1. 使用常用米游社手机下载以上APK并安装',
'2. 打开后点击按钮复制',
'3. 给机器人发送"%绑定设备"指令',

View file

@ -2,3 +2,6 @@ render:
scale: 100 # 渲染精度
query:
others: true # 允许查询他人信息
# 自定义绑定设备下载url
url: https://ghproxy.mihomo.me/https://raw.githubusercontent.com/forchannot/get_device_info/main/app/build/outputs/apk/debug/app-debug.apk

View file

@ -44,6 +44,15 @@ export function supportGuoba() {
placeholder: '请输入数字',
},
},
{
field: 'config.url',
label: '绑定设备下载url',
bottomHelpMessage: '设置自定义的绑定绑定设备下载url',
component:'Input',
componentProps: {
placeholder: '请输入绑定设备apk下载url',
}
},
{
field: 'config.query.others',
label: '查询他人信息',