修复按钮错误
This commit is contained in:
parent
305e97b1f7
commit
24fbf7e150
|
@ -50,8 +50,9 @@ export class gcLog extends plugin {
|
||||||
})
|
})
|
||||||
|
|
||||||
this.androidUrl = 'https://docs.qq.com/doc/DUWpYaXlvSklmVXlX'
|
this.androidUrl = 'https://docs.qq.com/doc/DUWpYaXlvSklmVXlX'
|
||||||
|
Object.defineProperty(this, "button", { get() {
|
||||||
this.prefix = this.e?.isSr ? "*" : "#"
|
this.prefix = this.e?.isSr ? "*" : "#"
|
||||||
this.button = segment.button([
|
return segment.button([
|
||||||
{ text: "角色记录", callback: `${this.prefix}角色记录` },
|
{ text: "角色记录", callback: `${this.prefix}角色记录` },
|
||||||
{ text: "角色统计", callback: `${this.prefix}角色统计` },
|
{ text: "角色统计", callback: `${this.prefix}角色统计` },
|
||||||
],[
|
],[
|
||||||
|
@ -61,6 +62,7 @@ export class gcLog extends plugin {
|
||||||
{ text: "常驻记录", callback: `${this.prefix}常驻记录` },
|
{ text: "常驻记录", callback: `${this.prefix}常驻记录` },
|
||||||
{ text: "常驻统计", callback: `${this.prefix}常驻统计` },
|
{ text: "常驻统计", callback: `${this.prefix}常驻统计` },
|
||||||
])
|
])
|
||||||
|
}})
|
||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
|
|
|
@ -31,11 +31,13 @@ export class ledger extends plugin {
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Object.defineProperty(this, "button", { get() {
|
||||||
this.prefix = this.e?.isSr ? "*星琼" : "#原石"
|
this.prefix = this.e?.isSr ? "*星琼" : "#原石"
|
||||||
this.button = segment.button([
|
return segment.button([
|
||||||
{ text: "记录", callback: this.prefix },
|
{ text: "记录", callback: this.prefix },
|
||||||
{ text: "统计", callback: `${this.prefix}统计` },
|
{ text: "统计", callback: `${this.prefix}统计` },
|
||||||
])
|
])
|
||||||
|
}})
|
||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
|
|
|
@ -30,13 +30,15 @@ export class role extends plugin {
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Object.defineProperty(this, "button", { get() {
|
||||||
this.prefix = this.e?.isSr ? "*" : "#"
|
this.prefix = this.e?.isSr ? "*" : "#"
|
||||||
this.button = segment.button([
|
return segment.button([
|
||||||
{ text: "角色", callback: `${this.prefix}角色` },
|
{ text: "角色", callback: `${this.prefix}角色` },
|
||||||
{ text: "探索", callback: `${this.prefix}探索` },
|
{ text: "探索", callback: `${this.prefix}探索` },
|
||||||
{ text: "武器", callback: `${this.prefix}武器` },
|
{ text: "武器", callback: `${this.prefix}武器` },
|
||||||
{ text: "深渊", callback: `${this.prefix}深渊` },
|
{ text: "深渊", callback: `${this.prefix}深渊` },
|
||||||
])
|
])
|
||||||
|
}})
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 初始化配置文件 */
|
/** 初始化配置文件 */
|
||||||
|
|
|
@ -192,7 +192,9 @@ export class strategy extends plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
this.e.reply(`暂无${name}攻略(${this.source[group - 1]})\n请尝试其他的攻略来源查询\n#攻略帮助,查看说明`)
|
this.e.reply([`暂无${name}攻略(${this.source[group - 1]})\n请尝试其他的攻略来源查询\n#攻略帮助,查看说明`, segment.button([
|
||||||
|
{ text: "攻略帮助", callback: "#攻略帮助" },
|
||||||
|
])])
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ export default class ExportLog extends base {
|
||||||
lang: list[0].lang,
|
lang: list[0].lang,
|
||||||
export_time: moment().format('YYYY-MM-DD HH:mm:ss'),
|
export_time: moment().format('YYYY-MM-DD HH:mm:ss'),
|
||||||
export_timestamp: moment().format('X'),
|
export_timestamp: moment().format('X'),
|
||||||
export_app: 'TRSS-Yunzai',
|
export_app: 'Miao-Yunzai',
|
||||||
export_app_version: cfg.package.version,
|
export_app_version: cfg.package.version,
|
||||||
},
|
},
|
||||||
list
|
list
|
||||||
|
|
Loading…
Reference in New Issue