添加部分埋点
This commit is contained in:
@@ -228,9 +228,10 @@
|
||||
self.passwordTextField.text.length);
|
||||
NSString *email = self.emailTextField.text ? self.emailTextField.text : @"";
|
||||
NSString *password = self.passwordTextField.text ? self.passwordTextField.text : @"";
|
||||
|
||||
KBWeakSelf;
|
||||
[self.loginVM emailLoginEmail:email password:password WithCompletion:^(BOOL success, NSError * _Nullable error) {
|
||||
if (success) {
|
||||
[weakSelf report:email];
|
||||
[[NSUserDefaults standardUserDefaults] setValue:email forKey:KBUserEmailKey];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
id<UIApplicationDelegate> appDelegate = UIApplication.sharedApplication.delegate;
|
||||
@@ -248,6 +249,11 @@
|
||||
}];
|
||||
|
||||
}
|
||||
- (void)report:(NSString *)account{
|
||||
[[KBMaiPointReporter sharedReporter] reportNewAccountWithType:@"登录用户" account:account completion:^(BOOL success, NSError * _Nullable error) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)onTapForgotPassword {
|
||||
KBLOG(@"KBEmailLoginVC onTapForgotPassword");
|
||||
|
||||
@@ -100,6 +100,7 @@
|
||||
self.params[@"gender"] = genderNumber;
|
||||
}
|
||||
NSString *email = self.params[@"mailAddress"] ? self.params[@"mailAddress"] : @"";
|
||||
KBWeakSelf
|
||||
[self.loginVM emailRegisterParams:self.params withCompletion:^(BOOL success, NSError * _Nullable error) {
|
||||
if (success) {
|
||||
[KBHUD showInfo:KBLocalized(@"Signed in successfully")];
|
||||
@@ -107,6 +108,7 @@
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[[NSUserDefaults standardUserDefaults] setValue:email forKey:KBUserEmailKey];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
[weakSelf report:email];
|
||||
KBEmailLoginVC *vc = [[KBEmailLoginVC alloc] init];
|
||||
[KB_CURRENT_NAV pushViewController:vc animated:true];
|
||||
// id<UIApplicationDelegate> appDelegate = UIApplication.sharedApplication.delegate;
|
||||
@@ -129,6 +131,12 @@
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)report:(NSString *)account{
|
||||
[[KBMaiPointReporter sharedReporter] reportNewAccountWithType:@"注册账号" account:account completion:^(BOOL success, NSError * _Nullable error) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
- (nullable NSNumber *)kb_localGenderParamIfAvailable {
|
||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
||||
// 只有在用户真正看过性别选择页后,才认为本地的性别有效
|
||||
|
||||
Reference in New Issue
Block a user