Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Feb 16, 2023
1 parent 0b0ef7d commit e14c8d1
Showing 1 changed file with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ export class UserModalComponent implements OnInit, OnDestroy {
isCancelBtnLoading;
isSaveBtnLoading;
private destroy$: Subject<void> = new Subject<void>();
// * 0=邮箱 1=手机号 2=wx 3=qq 4=飞书 5=github 6=帐号 7=跳转登录
hash = new Map().set(0, 'Email').set(1, 'Phone').set(2, 'Wecaht').set(3, 'QQ').set(4, 'Feishu').set(5, 'Github').set(6, 'Account');
constructor(
public store: StoreService,
public message: MessageService,
Expand Down Expand Up @@ -316,16 +318,14 @@ export class UserModalComponent implements OnInit, OnDestroy {
return;
}
this.trace.setUserID(data.userId);
// * 0=邮箱 1=手机号 2=wx 3=qq 4=飞书 5=github 6=帐号 7=跳转登录
const hash = new Map().set(0, '邮箱').set(1, '手机号').set(2, 'Wecaht').set(3, 'QQ').set(4, 'Feishu').set(5, 'Github').set(6, '账号');
// (0, '登录').set(1, '注册');
if (data.type == 0) {
// * login
this.trace.report('login_success', { login_way: hash.get(data.loginWay) });
this.trace.report('login_success', { login_way: this.hash.get(data.loginWay) });
}
if (data.type == 1) {
// * register
this.trace.setUser({ register_way: hash.get(data.loginWay) });
this.trace.setUser({ register_way: this.hash.get(data.loginWay) });
}
this.store.setLoginInfo(data);
this.effect.updateWorkspaceList();
Expand Down Expand Up @@ -419,23 +419,15 @@ export class UserModalComponent implements OnInit, OnDestroy {
return;
}
this.trace.setUserID(data.userId);
// * 0=邮箱 1=手机号 2=wx 3=qq 4=飞书 5=github 6=帐号 7=跳转登录
const hash = new Map()
.set(0, 'Email')
.set(1, 'Phone')
.set(2, 'Wecaht')
.set(3, 'QQ')
.set(4, 'Feishu')
.set(5, 'Github')
.set(6, 'Account');

// (0, '登录').set(1, '注册');
if (data.type == 0) {
// * login
this.trace.report('login_success', { login_way: hash.get(data.loginWay) });
this.trace.report('login_success', { login_way: this.hash.get(data.loginWay) });
}
if (data.type == 1) {
// * register
this.trace.setUser({ register_way: hash.get(data.loginWay) });
this.trace.setUser({ register_way: this.hash.get(data.loginWay) });
}
this.store.setLoginInfo(data);
this.effect.updateWorkspaceList();
Expand Down

0 comments on commit e14c8d1

Please sign in to comment.