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后依然是登陆状态