mirror of
https://github.com/LamGC/oracle-manager.git
synced 2025-04-29 14:17:33 +00:00
refactor: 简化账号列表的格式.
This commit is contained in:
parent
fd84a2a04b
commit
47971f7e3a
@ -200,7 +200,7 @@ class OracleAccountManagerExtension(private val bot: BaseAbilityBot) : AbilityEx
|
||||
val identityClient = IdentityClient(provider)
|
||||
val text = try {
|
||||
val user = identityClient.getUser(provider.userId)
|
||||
"${account.name} / ${user.name}(${user.email})【${account.regionId}】"
|
||||
"${account.name} / ${user.email}【${account.regionId}】"
|
||||
} catch (e: BmcException) {
|
||||
"${account.name} / null 【${account.regionId}】"
|
||||
}
|
||||
@ -219,8 +219,7 @@ class OracleAccountManagerExtension(private val bot: BaseAbilityBot) : AbilityEx
|
||||
)
|
||||
}
|
||||
val text = """
|
||||
当前 Telegram 用户已绑定以下 Oracle 账号
|
||||
(账号没有名字只有邮箱是因为通过 API 获取名字失败)
|
||||
当前 Telegram 用户已绑定以下 Oracle 账号:
|
||||
""".trimIndent()
|
||||
|
||||
if (messageId == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user