2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 11:00:51 +08:00

对于开拓者图鉴查询暂时进行拦截

This commit is contained in:
ctrlcvs 2023-06-27 16:12:02 +08:00
parent 685e9088b4
commit bfde0a3326
2 changed files with 6 additions and 33515 deletions

View File

@ -31,10 +31,16 @@ export async function sendMsg(e, {render}, data, url) {
export async function GetRoleData(e) {
let name = e.msg.replace(/\*|#|星铁|星穹铁道|图鉴/g, '')
let roleName = GetRole(name)?.name
if(!roleName){
return false
}
if(/开拓者/.test(name)){
// roleName = "开拓者 (火)"
e.reply("开拓者图鉴暂不支持查询")
return false
}
let data = Data.readJSON(pathPlus, `character/${roleName}/data.json`)
let items = Data.readJSON(pathPlus, 'items/data.json')
if(!data) return false

File diff suppressed because it is too large Load Diff