Commit e4e1b5d4 authored by David黄金龙's avatar David黄金龙

消除 警告

parent 858b30c4
......@@ -207,15 +207,15 @@ extension YHLoginViewController {
if Device.current.isSimulator == false {
let handler = TXCommonHandler.sharedInstance()
handler.accelerateLoginPage(withTimeout:10) { [weak self] dic in
guard let self = self else { return }
handler.accelerateLoginPage(withTimeout:10) { dic in
// guard self != nil else { return }
let resultCode = dic["resultCode"] as? String ?? ""
print("resultCode:\(resultCode)")
}
var model = TXCustomModel()
let model = TXCustomModel()
model.navColor = .orange
let attributes = [
NSAttributedString.Key.font: UIFont.systemFont(ofSize: 20),
......@@ -225,9 +225,10 @@ extension YHLoginViewController {
model.navTitle = NSAttributedString(string: "一键登录", attributes: attributes)
model.supportedInterfaceOrientations = UIInterfaceOrientationMask.portrait
handler.getLoginToken(withTimeout: 10.0, controller:self, model:model) { [weak self] dic in
handler.getLoginToken(withTimeout: 10.0, controller:self, model:model) { dic in
printLog(dic)
guard let self = self else { return }
// guard let self = self else { return }
}
......
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 to comment