mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
对于开拓者图鉴查询暂时进行拦截
This commit is contained in:
parent
685e9088b4
commit
bfde0a3326
@ -31,10 +31,16 @@ export async function sendMsg(e, {render}, data, url) {
|
|||||||
|
|
||||||
export async function GetRoleData(e) {
|
export async function GetRoleData(e) {
|
||||||
let name = e.msg.replace(/\*|#|星铁|星穹铁道|图鉴/g, '')
|
let name = e.msg.replace(/\*|#|星铁|星穹铁道|图鉴/g, '')
|
||||||
|
|
||||||
let roleName = GetRole(name)?.name
|
let roleName = GetRole(name)?.name
|
||||||
if(!roleName){
|
if(!roleName){
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if(/开拓者/.test(name)){
|
||||||
|
// roleName = "开拓者 (火)"
|
||||||
|
e.reply("开拓者图鉴暂不支持查询")
|
||||||
|
return false
|
||||||
|
}
|
||||||
let data = Data.readJSON(pathPlus, `character/${roleName}/data.json`)
|
let data = Data.readJSON(pathPlus, `character/${roleName}/data.json`)
|
||||||
let items = Data.readJSON(pathPlus, 'items/data.json')
|
let items = Data.readJSON(pathPlus, 'items/data.json')
|
||||||
if(!data) return false
|
if(!data) return false
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user