mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-23 03:27:39 +08:00
小改 TGUserInfo 返回的 display name 格式
- 将 first name 和 last name 合并为 display name 栏目
This commit is contained in:
parent
7ae339f47a
commit
88cc868c90
@ -1,6 +1,6 @@
|
|||||||
## Core
|
## Core
|
||||||
|
|
||||||
VERSION = 0.7.0.11
|
VERSION = 0.7.0.12
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
|
||||||
|
@ -4,6 +4,6 @@ package cc.sukazyo.cono.morny;
|
|||||||
* the final field that will be updated by gradle automatically.
|
* the final field that will be updated by gradle automatically.
|
||||||
*/
|
*/
|
||||||
public class GradleProjectConfigures {
|
public class GradleProjectConfigures {
|
||||||
public static final String VERSION = "0.7.0.11";
|
public static final String VERSION = "0.7.0.12";
|
||||||
public static final long COMPILE_TIMESTAMP = 1653443614307L;
|
public static final long COMPILE_TIMESTAMP = 1653445911339L;
|
||||||
}
|
}
|
||||||
|
@ -60,28 +60,14 @@ public class TelegramUserInformation {
|
|||||||
if (dataCenter == null) { userInformation.append("\ndatacenter : <u>null</u>"); }
|
if (dataCenter == null) { userInformation.append("\ndatacenter : <u>null</u>"); }
|
||||||
else { userInformation.append(String.format("\ndatacenter : <code>%s</code>", escapeHtml(dataCenter))); }
|
else { userInformation.append(String.format("\ndatacenter : <code>%s</code>", escapeHtml(dataCenter))); }
|
||||||
}
|
}
|
||||||
if (user.firstName() == null) {
|
|
||||||
userInformation.append("\nfirstname : <u>null</u>");
|
|
||||||
} else {
|
|
||||||
userInformation.append(String.format(
|
userInformation.append(String.format(
|
||||||
"""
|
"""
|
||||||
|
|
||||||
firstname :
|
display name :
|
||||||
- <code>%s</code>""",
|
- <code>%s</code>%s""",
|
||||||
escapeHtml(user.firstName())
|
escapeHtml(user.firstName()),
|
||||||
|
user.lastName()==null ? "" : String.format("\n- <code>%s</code>", escapeHtml(user.lastName()))
|
||||||
));
|
));
|
||||||
}
|
|
||||||
if (user.lastName() == null) {
|
|
||||||
userInformation.append("\nlastname : <u>null</u>");
|
|
||||||
} else {
|
|
||||||
userInformation.append(String.format(
|
|
||||||
"""
|
|
||||||
|
|
||||||
lastname :
|
|
||||||
- <code>%s</code>""",
|
|
||||||
escapeHtml(user.lastName())
|
|
||||||
));
|
|
||||||
}
|
|
||||||
if (user.languageCode() != null) {
|
if (user.languageCode() != null) {
|
||||||
userInformation.append(String.format(
|
userInformation.append(String.format(
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user