|
@@ -52,6 +52,8 @@ class BindPhoneNumberViewController: BaseViewController {
|
|
|
[weak self] (phoneNumber,sms,invitationCode) in
|
|
|
SwiftMoyaNetWorkServiceUser.shared().userBindMobileApi(mobile: phoneNumber, smsCode: sms, unionId: UserModel.shared().getModel()?.unionId ?? "", openId: UserModel.shared().getModel()?.openId ?? "", invitationCode: invitationCode, completion: { [weak self] (data) -> (Void) in
|
|
|
if self?.bindPhoneNumberVCType == .weixinlogin { //跳转性别
|
|
|
+ // 设置友盟别名
|
|
|
+ UMManager.shared.addAlias()
|
|
|
if UserModel.shared().getModel()?.isNewMember == 1 {
|
|
|
VirusViewModel.shared.registeredVirueRecordAddApi(completion: {
|
|
|
self?.present(GenderSelectionViewController(), animated: true, completion: {
|
|
@@ -73,7 +75,9 @@ class BindPhoneNumberViewController: BaseViewController {
|
|
|
}else if self?.bindPhoneNumberVCType == .accountSecuritySet { //设置密码
|
|
|
let vc = SetPasswordViewController()
|
|
|
self?.navigationController?.pushViewController(vc, animated: true)
|
|
|
- }else if self?.bindPhoneNumberVCType == .accountSecurityBindMobile { //绑定手机
|
|
|
+ }else if self?.bindPhoneNumberVCType == .accountSecurityBindMobile { //更换手机
|
|
|
+ //友盟重置别名
|
|
|
+ UMManager.shared.setAlias()
|
|
|
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "AccountSecurity"), object: nil)
|
|
|
self?.navigationController?.popViewController(animated: true)
|
|
|
}
|