细节优化
This commit is contained in:
parent
5feda74733
commit
75c8d3d5fe
|
@ -126,8 +126,8 @@ export class exchange extends plugin {
|
|||
}
|
||||
// 兑换码使用
|
||||
async useCode() {
|
||||
let cdkCode = this.e.message[0].text.split(/#(兑换码使用|cdk-u) /, 3)[2];
|
||||
let res = await MysInfo.get(this.e, 'useCdk', { cdk: cdkCode })
|
||||
const cdkCode = this.e.msg.replace(/#(兑换码使用|cdk-u)/, "").trim()
|
||||
const res = await MysInfo.get(this.e, 'useCdk', { cdk: cdkCode })
|
||||
if (res) {
|
||||
this.e.reply(`${res.data.msg}`)
|
||||
}
|
||||
|
|
|
@ -118,7 +118,7 @@ export default class MysInfo {
|
|||
|
||||
if (e.noTips !== true) e.reply(['请先#绑定uid', segment.button([
|
||||
{ text: "绑定UID", input: "#绑定uid" },
|
||||
])], false, { at })
|
||||
])], false, { at: at || true })
|
||||
|
||||
return false
|
||||
}
|
||||
|
@ -315,7 +315,7 @@ export default class MysInfo {
|
|||
if (!this.uid) {
|
||||
this.e.reply(['请先#绑定uid', segment.button([
|
||||
{ text: "绑定UID", input: "#绑定uid" },
|
||||
])])
|
||||
])], false, { at: true })
|
||||
}
|
||||
|
||||
if (!this.ckInfo.ck) {
|
||||
|
|
Loading…
Reference in New Issue