func signIn(username: String, password: String) {
isSigningIn = true
_ = LCUser.logIn(username: username, password: password) { [self] result in
switch result {
case .success:
userId = LCApplication.default.currentUser!.objectId!.stringValue!
case .failure(let error):
if error.errorCode == 211 {
signUpThenLogIn(username: username, password: password)
} else {
alertMessage = AlertMessage(title: "💩", detail: NSLocalizedString("WRONG USER NAME OR PASSWORD", comment: ""))
}
isSigningIn = false
}
}
}
以上是登陆的代码,问题仅在部分设备上出现,其它已经登陆的设备,杀死app后依然是登陆状态
-
创建时间
20年11月28日
-
最后回复
21年4月16日
-
19
回复
-
3.0K
浏览
-
3
用户
-
1
赞
-
3
链接