杨锴
2024-11-20 c649531411191cd60591eafcd9c3b9a9fede13e4
XQMuse/Root/Login/VC/UpdatePhoneVC.swift
@@ -119,11 +119,20 @@
        }
        Services.confirmByApple(cellPhone: tf_phone.text!, captcha: tf_code.text!, loginType: threePlantformLoginType, wxOrAppleId: unionId,name: formatName, mail: credential!.email).subscribe(onNext: {data in
        Services.confirmByApple(cellPhone: tf_phone.text!, captcha: tf_code.text!, loginType: threePlantformLoginType, wxOrAppleId: unionId,name: formatName, mail: credential?.email).subscribe(onNext: {data in
            if var model = data.data{
                model.loginByAppleToken = String(data: self.credential!.identityToken!, encoding: .utf8)
                if threePlantformLoginType == .apple{
                    model.loginByAppleToken = String(data: self.credential!.identityToken!, encoding: .utf8)
                    model.appleId = self.credential!.user
                }
                if threePlantformLoginType == .wechat{
                    model.wechatOpenId = unionId
                }
                model.accessToken = model.accessToken
                model.appleId = self.credential!.user
                UserViewModel.saveLoginInfo(model)
                Services.getUserInfo().subscribe(onNext: {data in