添加部分埋点

This commit is contained in:
2025-12-25 17:20:24 +08:00
parent 5b6e0a8fbf
commit 1af5a0e849
8 changed files with 201 additions and 1 deletions

View File

@@ -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");