Commit e940266c by pierce

qq登录接入

parent bd821e8b
Showing with 339 additions and 271 deletions
......@@ -256,9 +256,9 @@ public struct GDSDK {
public static let gd_wechatUniversalLink = "https://yabolive.com/qiezi/"
/// QQ Appid
public static let gd_QQAppId = "1110627651"
public static let gd_QQAppId = "102105469"
/// QQ key
public static let gd_QQAppKey = "xF0T9ElsZgDoC6N0"
public static let gd_QQAppKey = "a5NUO4VihRxEG3f4"
//
// /// 字节推拉流SDK AppID
// public static let gd_byteDanceAppID = "201548"
......
......@@ -19,7 +19,7 @@ class LoginViewController: BaseViewController {
/// 背景图片
let bgImageView = UIImageView(image: GDLoginBundle.imageNamed("user_login_bg1"))
/// Logo 图片
// let iconImageView = UIImageView(image: GDLoginBundle.imageNamed("user_login_AppIcon_6"))
// let iconImageView = UIImageView(image: GDLoginBundle.imageNamed("user_login_AppIcon_6"))
/// 登录相关背景 View
let loginBgView = UIView(frame: .zero)
/// 手机号登录
......@@ -28,9 +28,9 @@ class LoginViewController: BaseViewController {
let otherDescLabel = UILabel()
/// 第三方登录按钮
let qqBtn = UIButton(type: .system)
let wechatBtn = UIButton(type: .system)
// let wechatBtn = UIButton(type: .system)
let appleBtn = UIButton(type: .system)
// let visitorBtn = UIButton(type: .custom)
// let visitorBtn = UIButton(type: .custom)
// 暂存秒验登录 VC
var quickLoginVC: UIViewController?
var showSplashView = false
......@@ -69,9 +69,9 @@ class LoginViewController: BaseViewController {
delay(2) {[weak self] in
guard let self = self else { return }
// self.iconImageView.isHidden = true
// self.iconImageView.isHidden = true
firstOpenView.startAnimation {
// self.iconImageView.isHidden = false
// self.iconImageView.isHidden = false
firstOpenView.removeFromSuperview()
GDNetworkStatus.shared.isConnect
......@@ -128,7 +128,7 @@ class LoginViewController: BaseViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// self.startBackgroundAnimation()
// self.startBackgroundAnimation()
GDRouter.UserRouter?.verifyShouldShowVisitorMode()
......@@ -184,14 +184,14 @@ class LoginViewController: BaseViewController {
qqBtn.layer.masksToBounds = true
qqBtn.layer.cornerRadius = qqBtn.bounds.height / 2
wechatBtn.layer.masksToBounds = true
wechatBtn.layer.cornerRadius = wechatBtn.bounds.height / 2
// wechatBtn.layer.masksToBounds = true
// wechatBtn.layer.cornerRadius = wechatBtn.bounds.height / 2
appleBtn.layer.masksToBounds = true
appleBtn.layer.cornerRadius = appleBtn.bounds.height / 2
//
// visitorBtn.layer.masksToBounds = true
// visitorBtn.layer.cornerRadius = visitorBtn.height / 2.0
//
// visitorBtn.layer.masksToBounds = true
// visitorBtn.layer.cornerRadius = visitorBtn.height / 2.0
}
override var preferredStatusBarStyle: UIStatusBarStyle {
......@@ -207,7 +207,7 @@ class LoginViewController: BaseViewController {
makeBgImageView()
// makeIconImageView()
// makeIconImageView()
makeLoginView()
......@@ -270,10 +270,10 @@ class LoginViewController: BaseViewController {
self.view.addSubview(bgImageView)
}
// private func makeIconImageView() {
// iconImageView.contentMode = .scaleAspectFit
// self.view.addSubview(iconImageView)
// }
// private func makeIconImageView() {
// iconImageView.contentMode = .scaleAspectFit
// self.view.addSubview(iconImageView)
// }
private func makeLoginView() {
......@@ -293,10 +293,10 @@ class LoginViewController: BaseViewController {
loginBtn.setTitleColor(.init(white: 1, alpha: 0.8), for: .normal)
loginBgView.addSubview(loginBtn)
// visitorBtn.setTitle("游客登录", for: .normal)
// visitorBtn.setTitleColor(.init(white: 1, alpha: 0.5), for: .normal)
// visitorBtn.titleLabel?.font = .gd_default(14)
// loginBgView.addSubview(visitorBtn)
// visitorBtn.setTitle("游客登录", for: .normal)
// visitorBtn.setTitleColor(.init(white: 1, alpha: 0.5), for: .normal)
// visitorBtn.titleLabel?.font = .gd_default(14)
// loginBgView.addSubview(visitorBtn)
}
private func makeSocialLogin() {
......@@ -309,18 +309,18 @@ class LoginViewController: BaseViewController {
qqBtn.setImage(qqBtnImage, for: .normal)
loginBgView.addSubview(qqBtn)
let wechatBtnImage = GDLoginBundle.imageNamed("user_login_third_icon_wechat")?.withRenderingMode(.alwaysOriginal)
wechatBtn.setImage(wechatBtnImage, for: .normal)
loginBgView.addSubview(wechatBtn)
// let wechatBtnImage = GDLoginBundle.imageNamed("user_login_third_icon_wechat")?.withRenderingMode(.alwaysOriginal)
// wechatBtn.setImage(wechatBtnImage, for: .normal)
// loginBgView.addSubview(wechatBtn)
let appleBtnImage = GDLoginBundle.imageNamed("user_login_third_icon_apple_white")?.withRenderingMode(.alwaysOriginal)
appleBtn.setImage(appleBtnImage, for: .normal)
loginBgView.addSubview(appleBtn)
// visitorBtn.setImage(GDLoginBundle.imageNamed("user_login_third_icon_more")?.withRenderingMode(.alwaysOriginal), for: .normal)
// visitorBtn.setImage(GDLoginBundle.imageNamed("user_login_third_icon_visitor")?.withRenderingMode(.alwaysOriginal), for: .selected)
// visitorBtn.setImage(GDLoginBundle.imageNamed("user_login_third_icon_visitor")?.withRenderingMode(.alwaysOriginal), for: .focused)
// loginBgView.addSubview(visitorBtn)
// visitorBtn.setImage(GDLoginBundle.imageNamed("user_login_third_icon_more")?.withRenderingMode(.alwaysOriginal), for: .normal)
// visitorBtn.setImage(GDLoginBundle.imageNamed("user_login_third_icon_visitor")?.withRenderingMode(.alwaysOriginal), for: .selected)
// visitorBtn.setImage(GDLoginBundle.imageNamed("user_login_third_icon_visitor")?.withRenderingMode(.alwaysOriginal), for: .focused)
// loginBgView.addSubview(visitorBtn)
}
private func makeLastLoginView() {
......@@ -386,11 +386,11 @@ class LoginViewController: BaseViewController {
private func makeConstraints() {
// iconImageView.snp.makeConstraints { make in
// make.size.equalTo(143)
// make.centerX.equalToSuperview()
// make.centerY.equalToSuperview().offset(-140)
// }
// iconImageView.snp.makeConstraints { make in
// make.size.equalTo(143)
// make.centerX.equalToSuperview()
// make.centerY.equalToSuperview().offset(-140)
// }
loginBgView.snp.makeConstraints { (make) in
make.bottom.equalToSuperview()
......@@ -450,91 +450,108 @@ class LoginViewController: BaseViewController {
}
if #available(iOS 13.0, *) {
//
// if GDRouter.UserRouter?.isVisitor.value == false {
// visitorBtn.isHidden = false
// wechatBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.right.equalTo(qqBtn.snp.left).offset(-20)
// make.bottom.equalTo(qqBtn)
// }
//
// qqBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.centerX.equalToSuperview().offset(-40)
// make.bottom.equalTo(bottomLayoutGuide.snp.top).offset(-50)
// }
//
// appleBtn.snp.makeConstraints { (make) in
// make.size.equalTo(58)
// make.left.equalTo(qqBtn.snp.right).offset(20)
// make.bottom.equalTo(qqBtn)
// }
//
// visitorBtn.snp.makeConstraints { make in
// make.centerX.equalTo(self.loginBtn.snp.centerX)
// make.top.equalTo(self.loginBtn.snp.bottom).offset(10)
// }
// } else {
// visitorBtn.isHidden = true
//
//
// if GDRouter.UserRouter?.isVisitor.value == false {
// visitorBtn.isHidden = false
// wechatBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.right.equalTo(qqBtn.snp.left).offset(-20)
// make.bottom.equalTo(qqBtn)
// }
//
// qqBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.centerX.equalToSuperview().offset(-40)
// make.bottom.equalTo(bottomLayoutGuide.snp.top).offset(-50)
// }
//
// appleBtn.snp.makeConstraints { (make) in
// make.size.equalTo(58)
// make.left.equalTo(qqBtn.snp.right).offset(20)
// make.bottom.equalTo(qqBtn)
// }
//
// visitorBtn.snp.makeConstraints { make in
// make.centerX.equalTo(self.loginBtn.snp.centerX)
// make.top.equalTo(self.loginBtn.snp.bottom).offset(10)
// }
// } else {
// visitorBtn.isHidden = true
//
// qqBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.centerX.equalToSuperview()
// make.bottom.equalTo(bottomLayoutGuide.snp.top).offset(-50)
// }
//
// wechatBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.right.equalTo(qqBtn.snp.left).offset(-20)
// make.bottom.equalTo(qqBtn)
// }
//
// appleBtn.snp.makeConstraints { (make) in
// make.size.equalTo(58)
// make.left.equalTo(qqBtn.snp.right).offset(20)
// make.bottom.equalTo(qqBtn)
// }
qqBtn.snp.makeConstraints { (make) in
make.size.equalTo(60)
make.centerX.equalToSuperview()
make.centerX.equalToSuperview().offset(60)
make.bottom.equalTo(bottomLayoutGuide.snp.top).offset(-50)
}
wechatBtn.snp.makeConstraints { (make) in
make.size.equalTo(60)
make.right.equalTo(qqBtn.snp.left).offset(-20)
make.bottom.equalTo(qqBtn)
}
appleBtn.snp.makeConstraints { (make) in
make.size.equalTo(58)
make.left.equalTo(qqBtn.snp.right).offset(20)
make.size.equalTo(60)
make.centerX.equalToSuperview().offset(-60)
make.bottom.equalTo(qqBtn)
}
// }
//
// }
//
} else {
// appleBtn.isHidden = true
//
// if GDRouter.UserRouter?.isVisitor.value == false {
// qqBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.centerX.equalToSuperview()
// make.bottom.equalTo(bottomLayoutGuide.snp.top).offset(-50)
// }
//
// wechatBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.right.equalTo(qqBtn.snp.left).offset(-20)
// make.bottom.equalTo(qqBtn)
// }
//
// visitorBtn.snp.makeConstraints { make in
// make.size.equalTo(60)
// make.left.equalTo(qqBtn.snp.right).offset(20)
// make.bottom.equalTo(qqBtn)
// }
// } else {
// visitorBtn.isHidden = true
// appleBtn.isHidden = true
//
// if GDRouter.UserRouter?.isVisitor.value == false {
// qqBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.centerX.equalToSuperview()
// make.bottom.equalTo(bottomLayoutGuide.snp.top).offset(-50)
// }
//
// wechatBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.right.equalTo(qqBtn.snp.left).offset(-20)
// make.bottom.equalTo(qqBtn)
// }
//
// visitorBtn.snp.makeConstraints { make in
// make.size.equalTo(60)
// make.left.equalTo(qqBtn.snp.right).offset(20)
// make.bottom.equalTo(qqBtn)
// }
// } else {
// visitorBtn.isHidden = true
// qqBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.centerX.equalToSuperview().offset(60)
// make.bottom.equalTo(bottomLayoutGuide.snp.top).offset(-50)
// }
//
// wechatBtn.snp.makeConstraints { (make) in
// make.size.equalTo(60)
// make.centerX.equalToSuperview().offset(-60)
// make.bottom.equalTo(qqBtn)
// }
qqBtn.snp.makeConstraints { (make) in
make.size.equalTo(60)
make.centerX.equalToSuperview().offset(60)
make.centerX.equalToSuperview()
make.bottom.equalTo(bottomLayoutGuide.snp.top).offset(-50)
}
wechatBtn.snp.makeConstraints { (make) in
make.size.equalTo(60)
make.centerX.equalToSuperview().offset(-60)
make.bottom.equalTo(qqBtn)
}
}
//
// }
//
// }
}
// MARK: Data
......@@ -546,33 +563,33 @@ class LoginViewController: BaseViewController {
self.socialLogin(with: .apple)
}).disposed(by: disposeBag)
wechatBtn.rx.tap.subscribe(onNext: {[weak self] (_) in
guard let self = self else { return }
self.socialLogin(with: .wechat)
}).disposed(by: disposeBag)
// wechatBtn.rx.tap.subscribe(onNext: {[weak self] (_) in
// guard let self = self else { return }
// self.socialLogin(with: .wechat)
// }).disposed(by: disposeBag)
qqBtn.rx.tap.subscribe(onNext: {[weak self] _ in
guard let self = self else { return }
self.socialLogin(with: .qq)
}).disposed(by: disposeBag)
//
// visitorBtn.rx.tap.subscribe(onNext: {[weak self] _ in
// guard let self = self else { return }
//// if self.visitorBtn.isSelected == false {
//// self.visitorBtn.isSelected = true
//// } else {
//// self.visitorBtn.isEnabled = false
//// delay(0.5) {
//// self.visitorBtn.isEnabled = true
//// }
// if GDRouter.UserRouter?.isVisitor.value == false {
// // 进入游客模式
// GDRouter.UserRouter?.visitorLogin()
// } else {
// self.navigationController?.dismiss(animated: true, completion: nil)
// }
// }
// }).disposed(by: disposeBag)
//
// visitorBtn.rx.tap.subscribe(onNext: {[weak self] _ in
// guard let self = self else { return }
//// if self.visitorBtn.isSelected == false {
//// self.visitorBtn.isSelected = true
//// } else {
//// self.visitorBtn.isEnabled = false
//// delay(0.5) {
//// self.visitorBtn.isEnabled = true
//// }
// if GDRouter.UserRouter?.isVisitor.value == false {
// // 进入游客模式
// GDRouter.UserRouter?.visitorLogin()
// } else {
// self.navigationController?.dismiss(animated: true, completion: nil)
// }
// }
// }).disposed(by: disposeBag)
loginBtn.rx.tap.subscribe(onNext: {[weak self] (_) in
self?.phoneNumberLogin()
......@@ -649,14 +666,14 @@ class LoginViewController: BaseViewController {
}
/// 启动背景动画
// private func startBackgroundAnimation() {
// self.bgImageView.layer.removeAllAnimations()
// let animation = CAKeyframeAnimation(keyPath: "position")
// animation.values = [CGPoint.init(x: (GDScreen.width - self.bgImageView.width) / 2.0 + GDScreen.width / 2.0, y: GDScreen.height / 2.0), CGPoint.init(x: abs(GDScreen.width - self.bgImageView.width) / 2.0 + GDScreen.width / 2.0, y: GDScreen.height / 2.0), CGPoint.init(x: (GDScreen.width - self.bgImageView.width) / 2.0 + GDScreen.width / 2.0, y: GDScreen.height / 2.0)]
// animation.duration = 10
// animation.repeatCount = 10000
// self.bgImageView.layer.add(animation, forKey: "position")
// }
// private func startBackgroundAnimation() {
// self.bgImageView.layer.removeAllAnimations()
// let animation = CAKeyframeAnimation(keyPath: "position")
// animation.values = [CGPoint.init(x: (GDScreen.width - self.bgImageView.width) / 2.0 + GDScreen.width / 2.0, y: GDScreen.height / 2.0), CGPoint.init(x: abs(GDScreen.width - self.bgImageView.width) / 2.0 + GDScreen.width / 2.0, y: GDScreen.height / 2.0), CGPoint.init(x: (GDScreen.width - self.bgImageView.width) / 2.0 + GDScreen.width / 2.0, y: GDScreen.height / 2.0)]
// animation.duration = 10
// animation.repeatCount = 10000
// self.bgImageView.layer.add(animation, forKey: "position")
// }
private func setupLastLoginUser(_ user: GDUserModel) {
lastLoginFaceImageView.cancelDownload()
......@@ -745,54 +762,54 @@ extension LoginViewController {
model.privacyTextAlignment = NSNumber(value: NSTextAlignment.center.rawValue)
model.privacyLineSpacing = 4
// let layout = SecVerifyCustomLayouts()
//
// let sloganLayout = SecVerifyLayout()
// sloganLayout.layoutBottom = NSNumber(floatLiteral: -Double(16.0 + GDScreen.SafeArea.bottom))
// sloganLayout.layoutCenterX = 0
// sloganLayout.layoutHeight = 20
// layout.sloganLayout = sloganLayout
//
// let privacyLayout = SecVerifyLayout()
// privacyLayout.layoutBottom = NSNumber(floatLiteral: -Double(16.0 + GDScreen.SafeArea.bottom + 20))
// privacyLayout.layoutCenterX = 0
// privacyLayout.layoutHeight = 40
// privacyLayout.layoutLeft = 50
// privacyLayout.layoutRight = -50
// layout.privacyLayout = privacyLayout
//
// let switchLayout = SecVerifyLayout()
// switchLayout.layoutTop = NSNumber(floatLiteral: Double(GDScreen.height) * 0.75)
// switchLayout.layoutCenterX = 0
// switchLayout.layoutHeight = 20
// layout.switchLayout = switchLayout
//
// let loginLayout = SecVerifyLayout()
// loginLayout.layoutHeight = 50
// loginLayout.layoutLeft = 50
// loginLayout.layoutRight = -50
// loginLayout.layoutTop = NSNumber(floatLiteral: switchLayout.layoutTop.doubleValue - 50 - 16)
// layout.loginLayout = loginLayout
//
// let phoneLayout = SecVerifyLayout()
// phoneLayout.layoutHeight = 50
// phoneLayout.layoutLeft = 50
// phoneLayout.layoutRight = -50
// phoneLayout.layoutTop = NSNumber(floatLiteral: loginLayout.layoutTop.doubleValue - 50 - 16)
// layout.phoneLayout = phoneLayout
//
// let leftControlLayout = SecVerifyLayout()
// leftControlLayout.layoutTop = NSNumber(floatLiteral: Double(GDScreen.SafeArea.top + 18))
// leftControlLayout.layoutWidth = 40
// leftControlLayout.layoutHeight = 40
// if visitorDirectPhoneLogin {
// leftControlLayout.layoutRight = 8
// } else {
// leftControlLayout.layoutLeft = 8
// }
// layout.leftControlLayout = leftControlLayout
// SVSDKLoginManager.default().secLoginViewController?.dismiss(animated: false, completion: nil)
// let layout = SecVerifyCustomLayouts()
//
// let sloganLayout = SecVerifyLayout()
// sloganLayout.layoutBottom = NSNumber(floatLiteral: -Double(16.0 + GDScreen.SafeArea.bottom))
// sloganLayout.layoutCenterX = 0
// sloganLayout.layoutHeight = 20
// layout.sloganLayout = sloganLayout
//
// let privacyLayout = SecVerifyLayout()
// privacyLayout.layoutBottom = NSNumber(floatLiteral: -Double(16.0 + GDScreen.SafeArea.bottom + 20))
// privacyLayout.layoutCenterX = 0
// privacyLayout.layoutHeight = 40
// privacyLayout.layoutLeft = 50
// privacyLayout.layoutRight = -50
// layout.privacyLayout = privacyLayout
//
// let switchLayout = SecVerifyLayout()
// switchLayout.layoutTop = NSNumber(floatLiteral: Double(GDScreen.height) * 0.75)
// switchLayout.layoutCenterX = 0
// switchLayout.layoutHeight = 20
// layout.switchLayout = switchLayout
//
// let loginLayout = SecVerifyLayout()
// loginLayout.layoutHeight = 50
// loginLayout.layoutLeft = 50
// loginLayout.layoutRight = -50
// loginLayout.layoutTop = NSNumber(floatLiteral: switchLayout.layoutTop.doubleValue - 50 - 16)
// layout.loginLayout = loginLayout
//
// let phoneLayout = SecVerifyLayout()
// phoneLayout.layoutHeight = 50
// phoneLayout.layoutLeft = 50
// phoneLayout.layoutRight = -50
// phoneLayout.layoutTop = NSNumber(floatLiteral: loginLayout.layoutTop.doubleValue - 50 - 16)
// layout.phoneLayout = phoneLayout
//
// let leftControlLayout = SecVerifyLayout()
// leftControlLayout.layoutTop = NSNumber(floatLiteral: Double(GDScreen.SafeArea.top + 18))
// leftControlLayout.layoutWidth = 40
// leftControlLayout.layoutHeight = 40
// if visitorDirectPhoneLogin {
// leftControlLayout.layoutRight = 8
// } else {
// leftControlLayout.layoutLeft = 8
// }
// layout.leftControlLayout = leftControlLayout
// SVSDKLoginManager.default().secLoginViewController?.dismiss(animated: false, completion: nil)
SVSDKHyVerify.finishLoginVc(animated: false, completion: nil)
SVSDKHyVerify.setDelegate(self)
......
......@@ -104,7 +104,7 @@ class GDAddNewAccountController: BaseViewController {
let otherDescLabel = UILabel()
/// 第三方登录按钮
let qqBtn = UIButton(type: .system)
let wechatBtn = UIButton(type: .system)
// let wechatBtn = UIButton(type: .system)
let appleBtn = UIButton(type: .system)
private func makePhoneTextInputView() {
......@@ -299,9 +299,9 @@ class GDAddNewAccountController: BaseViewController {
qqBtn.setImage(qqBtnImage, for: .normal)
self.view.addSubview(qqBtn)
let wechatBtnImage = GDPersonalBundle.imageNamed("share_invite_wechat_icon")?.withRenderingMode(.alwaysOriginal)
wechatBtn.setImage(wechatBtnImage, for: .normal)
self.view.addSubview(wechatBtn)
// let wechatBtnImage = GDPersonalBundle.imageNamed("share_invite_wechat_icon")?.withRenderingMode(.alwaysOriginal)
// wechatBtn.setImage(wechatBtnImage, for: .normal)
// self.view.addSubview(wechatBtn)
let appleBtnImage = GDPersonalBundle.imageNamed("share_invite_apple_icon")?.withRenderingMode(.alwaysOriginal)
appleBtn.setImage(appleBtnImage, for: .normal)
......@@ -351,35 +351,54 @@ class GDAddNewAccountController: BaseViewController {
}
if #available(iOS 13.0, *) {
wechatBtn.snp.makeConstraints { (make) in
make.size.equalTo(50)
make.right.equalTo(qqBtn.snp.left).offset(-20)
make.bottom.equalTo(qqBtn)
}
// wechatBtn.snp.makeConstraints { (make) in
// make.size.equalTo(50)
// make.right.equalTo(qqBtn.snp.left).offset(-20)
// make.bottom.equalTo(qqBtn)
// }
//
// qqBtn.snp.makeConstraints { (make) in
// make.size.equalTo(50)
// make.centerX.equalToSuperview()
// make.bottom.equalTo(userAgreementTitleBtn.snp.top).offset(-30)
// }
//
// appleBtn.snp.makeConstraints { (make) in
// make.size.equalTo(50)
// make.left.equalTo(qqBtn.snp.right).offset(20)
// make.bottom.equalTo(qqBtn)
// }
qqBtn.snp.makeConstraints { (make) in
make.size.equalTo(50)
make.centerX.equalToSuperview()
make.centerX.equalToSuperview().offset(-60)
make.bottom.equalTo(userAgreementTitleBtn.snp.top).offset(-30)
}
appleBtn.snp.makeConstraints { (make) in
make.size.equalTo(50)
make.left.equalTo(qqBtn.snp.right).offset(20)
make.centerX.equalToSuperview().offset(60)
make.bottom.equalTo(qqBtn)
}
} else {
appleBtn.isHidden = true
wechatBtn.snp.makeConstraints { (make) in
make.size.equalTo(50)
make.centerX.equalToSuperview().offset(-60)
make.bottom.equalTo(qqBtn)
}
// wechatBtn.snp.makeConstraints { (make) in
// make.size.equalTo(50)
// make.centerX.equalToSuperview().offset(-60)
// make.bottom.equalTo(qqBtn)
// }
//
// qqBtn.snp.makeConstraints { (make) in
// make.size.equalTo(50)
// make.centerX.equalToSuperview().offset(60)
// make.bottom.equalTo(userAgreementTitleBtn.snp.top).offset(-30)
// }
qqBtn.snp.makeConstraints { (make) in
make.size.equalTo(50)
make.centerX.equalToSuperview().offset(60)
make.centerX.equalToSuperview()
make.bottom.equalTo(userAgreementTitleBtn.snp.top).offset(-30)
}
}
......@@ -467,10 +486,10 @@ class GDAddNewAccountController: BaseViewController {
}
}).disposed(by: disposeBag)
wechatBtn.rx.tap.subscribe(onNext: {[weak self] (_) in
guard let self = self else { return }
self.socialLogin(with: .wechat)
}).disposed(by: disposeBag)
// wechatBtn.rx.tap.subscribe(onNext: {[weak self] (_) in
// guard let self = self else { return }
// self.socialLogin(with: .wechat)
// }).disposed(by: disposeBag)
qqBtn.rx.tap.subscribe(onNext: {[weak self] _ in
guard let self = self else { return }
......
{
"images": [
"images" : [
{
"idiom": "universal",
"scale": "1x"
"idiom" : "universal",
"scale" : "1x"
},
{
"filename": "share_invite_apple_icon.png",
"idiom": "universal",
"scale": "2x"
"filename" : "share_invite_apple_icon.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom": "universal",
"scale": "3x"
"idiom" : "universal",
"scale" : "3x"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images": [
"images" : [
{
"idiom": "universal",
"scale": "1x"
"idiom" : "universal",
"scale" : "1x"
},
{
"filename": "share_invite_bg.png",
"idiom": "universal",
"scale": "2x"
"filename" : "share_invite_bg.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom": "universal",
"scale": "3x"
"idiom" : "universal",
"scale" : "3x"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images": [
"images" : [
{
"idiom": "universal",
"scale": "1x"
"idiom" : "universal",
"scale" : "1x"
},
{
"filename": "share_invite_circle_icon.png",
"idiom": "universal",
"scale": "2x"
"filename" : "share_invite_circle_icon.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom": "universal",
"scale": "3x"
"idiom" : "universal",
"scale" : "3x"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images": [
"images" : [
{
"idiom": "universal",
"scale": "1x"
"idiom" : "universal",
"scale" : "1x"
},
{
"filename": "share_invite_qq_icon.png",
"idiom": "universal",
"scale": "2x"
"filename" : "share_invite_qq_icon.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom": "universal",
"scale": "3x"
"idiom" : "universal",
"scale" : "3x"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images": [
"images" : [
{
"idiom": "universal",
"scale": "1x"
"idiom" : "universal",
"scale" : "1x"
},
{
"filename": "share_invite_qrcode_icon.png",
"idiom": "universal",
"scale": "2x"
"filename" : "share_invite_qrcode_icon.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom": "universal",
"scale": "3x"
"idiom" : "universal",
"scale" : "3x"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images": [
"images" : [
{
"idiom": "universal",
"scale": "1x"
"idiom" : "universal",
"scale" : "1x"
},
{
"filename": "share_invite_wechat_icon.png",
"idiom": "universal",
"scale": "2x"
"filename" : "share_invite_wechat_icon.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom": "universal",
"scale": "3x"
"idiom" : "universal",
"scale" : "3x"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -566,6 +566,7 @@ struct GDPlat {
}
static func setup(with delegate: TencentSessionDelegate) -> TencentOAuth? {
TencentOAuth.setIsUserAgreedAuthorization(true)
return TencentOAuth(appId: GDSDK.gd_QQAppId, andDelegate: delegate)
}
......
......@@ -38,7 +38,6 @@ struct GDTeenagerSocketCID {
let teenagerView = GDTeenagerModePopupView()
teenagerView.currentVC = UIViewController.topViewController()
teenagerView.show(on: view)
}
}
}
......
......@@ -2,6 +2,37 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>xiusechat</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>tencent</string>
<key>CFBundleURLSchemes</key>
<array>
<string>tencent102105469</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>qq</string>
<key>CFBundleURLSchemes</key>
<array>
<string>QQ0616017D</string>
</array>
</dict>
</array>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>NSAllowsArbitraryLoads</key>
......
......@@ -7,6 +7,7 @@
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:xs.cxylive.top/xiusechat/</string>
<string>applinks:xs.cxylive.top/qq_conn/102105469/</string>
</array>
</dict>
</plist>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment