!57 未绑定UID时增加绑定星铁UID提示

* 修改UID绑定提示
This commit is contained in:
千奈千祁 2023-12-05 20:06:22 +00:00 committed by Kokomi
parent b2b9cfd555
commit 8216b93c32
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ const _getTargetUid = async function (e) {
}
uid = user.uid
if ((!uid || !uidReg.test(uid)) && !e._replyNeedUid) {
e.reply('请先发送【#绑定+你的UID】来绑定查询目标')
e.reply('请先发送【#绑定+你的UID】来绑定查询目标\n星铁请使用【#星铁绑定+UID】')
e._replyNeedUid = true
return false
}

View File

@ -12,7 +12,7 @@ const ProfileList = {
async refresh (e) {
let uid = await getTargetUid(e)
if (!uid) {
e._replyNeedUid || e.reply('请先发送【#绑定+你的UID】来绑定查询目标')
e._replyNeedUid || e.reply('请先发送【#绑定+你的UID】来绑定查询目标\n星铁请使用【#星铁绑定+UID】')
return true
}
@ -51,7 +51,7 @@ const ProfileList = {
async render (e) {
let uid = await getTargetUid(e)
if (!uid) {
e._replyNeedUid || e.reply('请先发送【#绑定+你的UID】来绑定查询目标')
e._replyNeedUid || e.reply('请先发送【#绑定+你的UID】来绑定查询目标\n星铁请使用【#星铁绑定+UID】')
return true
}

View File

@ -71,7 +71,7 @@ export default class MysApi {
if (uid) {
return new User({ id: e.user_id, uid })
} else {
e.reply('请先发送【#绑定+你的UID】来绑定查询目标')
e.reply('请先发送【#绑定+你的UID】来绑定查询目标\n星铁请使用【#星铁绑定+UID】')
e._replyNeedUid = true
return false
}