修改:协议和配置表
This commit is contained in:
@@ -8,8 +8,8 @@ export class AccountData extends BaseData {
|
||||
private _identifier = "";
|
||||
// 身份类型,1:游客;2:微信;3:googleplay
|
||||
private _identityType = 1;
|
||||
// 玩家Uid
|
||||
private _uid = "";
|
||||
// 用户id
|
||||
private _accId = 0;
|
||||
// 是否新手
|
||||
private _isNewGuide = true;
|
||||
// 是否刚注册
|
||||
@@ -18,7 +18,7 @@ export class AccountData extends BaseData {
|
||||
public reset(): void {
|
||||
this._identifier = "";
|
||||
this._identityType = 1;
|
||||
this._uid = "";
|
||||
this._accId = 0;
|
||||
this._isNewGuide = true;
|
||||
this._isNewRegist = true;
|
||||
}
|
||||
@@ -26,7 +26,7 @@ export class AccountData extends BaseData {
|
||||
public clear(): void {
|
||||
this._identifier = "";
|
||||
this._identityType = 1;
|
||||
this._uid = "";
|
||||
this._accId = 0;
|
||||
this._isNewGuide = true;
|
||||
this._isNewRegist = true;
|
||||
}
|
||||
@@ -35,7 +35,7 @@ export class AccountData extends BaseData {
|
||||
super.destroy();
|
||||
this._identifier = null;
|
||||
this._identityType = null;
|
||||
this._uid = null;
|
||||
this._accId = null;
|
||||
this._isNewGuide = null;
|
||||
this._isNewRegist = null;
|
||||
}
|
||||
@@ -60,14 +60,14 @@ export class AccountData extends BaseData {
|
||||
return this._identityType;
|
||||
}
|
||||
|
||||
/** 设置玩家Uid */
|
||||
public set uid(value: string) {
|
||||
this._uid = value;
|
||||
/** 设置用户id */
|
||||
public set accId(value: number) {
|
||||
this._accId = value;
|
||||
}
|
||||
|
||||
/** 获取玩家Uid */
|
||||
public get uid(): string {
|
||||
return this._uid;
|
||||
/** 获取用户id */
|
||||
public get accId(): number {
|
||||
return this._accId;
|
||||
}
|
||||
|
||||
/** 设置是否新手 */
|
||||
|
||||
Reference in New Issue
Block a user