mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-10 15:56:03 +00:00
fix: 修复子字段值为空时导致字段丢失的问题
This commit is contained in:
@@ -8,16 +8,15 @@
|
||||
"description": "以数组形式设置,程序将前缀符合设置的消息视为命令(群内需要符合群响应规则)",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"default": [
|
||||
"!",
|
||||
"!"
|
||||
]
|
||||
},
|
||||
"privilege": {
|
||||
"type": "object",
|
||||
"title": "权限管理",
|
||||
"layout": {
|
||||
"props": {
|
||||
"title": "权限管理"
|
||||
}
|
||||
},
|
||||
"description": "设置每个命令的权限配置。普通用户权限级别为 1,管理员(system.json中设置的)权限级别为 2;在这里设置每个命令的最低权限级别,若设置为1,则用户和管理员均可用,若为2,则仅管理员可用;设置子命令时,以点号间隔,如\"plugin.on\"",
|
||||
"properties": {
|
||||
"placeholder": {
|
||||
@@ -33,7 +32,8 @@
|
||||
"minimum": 1,
|
||||
"maximum": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
"default": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user