添加ip归属地

This commit is contained in:
luying
2022-08-04 13:38:38 +08:00
parent b83d9db979
commit d656d12a74
9 changed files with 35 additions and 2 deletions

View File

@@ -88,6 +88,7 @@ export class PlayerDetail {
roleName: string;
lv: number;
title?: number = 1;
ipLocation: string = '';
head?: number = EXTERIOR.EXTERIOR_FACE;
frame?: number = EXTERIOR.EXTERIOR_FACECASE;
spine?: number = EXTERIOR.EXTERIOR_APPEARANCE;
@@ -126,6 +127,7 @@ export class PlayerDetail {
if(role.head) this.head = role.head;
if(role.frame) this.frame = role.frame;
if(role.spine) this.spine = role.spine;
if(role.ipLocation) this.ipLocation = role.ipLocation;
}
setCe(ce: number) {

View File

@@ -18,6 +18,7 @@ export class FriendParams {
serverName: string;
type: number = FRIEND_RELATION_TYPE.NORMAL;
guildName: string = '';
ipLocation: string = '';
constructor(role: RoleType) {
this.roleId = role.roleId;
@@ -29,6 +30,7 @@ export class FriendParams {
this.ce = role.ce;
this.title = role.title;
this.guildName = role.guildName||'';
this.ipLocation = role.ipLocation||'';
}
setServerName(serverId: number, serverName: string) {