+
+
私聊.
送礼物.
逗一下
+
拜师.
山寨.
送道具
+
加好友.
加仇人
+
+
+
+ ID:{{ userData.userNo }}({{ online == 1 ? '在线' : '离线' }})
+ 昵称:{{ userData.nick }}
+ 特权:
+ 徽章:
+ 社交: 暂无
+ 婚姻:
+ 结拜:暂无
+ 宠物:暂无
+ 坐骑:无
+ 成就:
+ 个性签名:{{ userData.sign }}
+ 罪恶值:0
+ 师德:{{ accData.teach }}
+
+
+ {{ attrData.lev }}级{{ userData.sex }}性({{ onMap }})
+
+
+ 手持:
+ 副手:
+ 头戴:
+ 身穿:
+ 腰带:
+ 脚穿:
+ 佩戴:
+ 时装:
+ 羽翼:
+ 装饰:
+ 套装:
+ 帮会:
+ 队伍:
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/services/user/UserService.ts b/Web/src/services/user/UserService.ts
new file mode 100644
index 0000000..1966732
--- /dev/null
+++ b/Web/src/services/user/UserService.ts
@@ -0,0 +1,17 @@
+export class UserService {
+ /**
+ * 获取个人资料信息
+ * GET /User/User/GetUserInfo
+ */
+ static async GetUserInfo() {
+ return await ApiService.Request("get", "/User/User/GetUserInfo");
+ }
+
+ /**
+ * 获取用户资料
+ * GET /User/User/GetHomeInfo
+ */
+ static async GetHomeInfo(no: string) {
+ return await ApiService.Request("get", "/User/User/GetHomeInfo", { no });
+ }
+}
\ No newline at end of file
diff --git a/Web/src/utility/GameTool.ts b/Web/src/utility/GameTool.ts
new file mode 100644
index 0000000..0199f64
--- /dev/null
+++ b/Web/src/utility/GameTool.ts
@@ -0,0 +1,38 @@
+export class GameTool {
+ /**
+ * 静态方法:将总铜数转换为 金/银/铜 字符串
+ * @param totalCopper 总铜数量
+ * @returns 格式化字符串,如:1金 234银 567铜
+ */
+ public static FormatCopper(totalCopper: number | string): string {
+ // 安全转为数字并取整(货币无小数)
+ let copper = Math.floor(Number(totalCopper) || 0);
+
+ // 处理负数
+ const isNegative = copper < 0;
+ copper = Math.abs(copper);
+
+ // 单位换算
+ const copperUnit = copper % 1000;
+ const totalSilver = Math.floor(copper / 1000);
+ const silverUnit = totalSilver % 1000;
+ const goldUnit = Math.floor(totalSilver / 1000);
+
+ // 拼接非0单位
+ const parts: string[] = [];
+ if (goldUnit > 0) parts.push(`${goldUnit}金`);
+ if (silverUnit > 0) parts.push(`${silverUnit}银`);
+ if (copperUnit > 0) parts.push(`${copperUnit}铜`);
+
+ // 空值显示 0铜
+ let result = parts.length > 0 ? parts.join(' ') : '0铜';
+
+ // 恢复负号
+ if (isNegative) {
+ result = `-${result}`;
+ }
+
+ return result;
+ }
+
+}
\ No newline at end of file