Commit 77aa4c03 by pierce

fixed bugs

parent 0d0f2cfa
......@@ -104,7 +104,9 @@ public final class GDPersonalAuthModel: BaseModel, NetworkArrType {
public static func createArrFrom(_ json: JSON) -> [GDPersonalAuthModel] {
return json["result"].arrayValue
.map { GDPersonalAuthModel.createFrom($0) }
.filter { $0.key != .unknown }
.filter { $0.key != .unknown
//TODO:wechat auth: added By Pidan
&& $0.key != .wechat }
}
public static func createFrom(_ json: JSON) -> GDPersonalAuthModel {
......
......@@ -206,6 +206,8 @@ class GDSettingAccountController: BaseViewController {
socialAccount.identifier = self.socialAccountIdentifier
self.tableView.items.accept([securityItem, accountSetting, socialAccount, accountCancle])
self.getSocialPlatInfo()
}).disposed(by: disposeBag)
}
......@@ -279,7 +281,7 @@ class GDSettingAccountController: BaseViewController {
GDRouter.UserRouter?.bindSocialPlat(on: plat, currentVC: self).subscribe(onSuccess: {[weak self] (_) in
FTIndicator.showToastMessage("绑定成功")
guard let self = self else { return }
// self.getSocialPlatInfo()
self.getSocialPlatInfo()
}, onFailure: { (error) in
guard let error = error as? GDMoyaError else { return }
FTIndicator.showToastMessage(error.msg)
......
......@@ -62,7 +62,9 @@ class GDZoneInfoAuthCell: UITableViewCell {
/// 隔线
private let lineView = UIView(frame: .zero)
/// 认证状态
private var authState = BehaviorRelay<[GDPersonalAuthType: Bool]>(value: [.idCard: false, .phone: false, .wechat: false])
/*private var authState = BehaviorRelay<[GDPersonalAuthType: Bool]>(value: [.idCard: false, .phone: false, .wechat: false])*/
/// 认证状态
private var authState = BehaviorRelay<[GDPersonalAuthType: Bool]>(value: [.idCard: false, .phone: false])
private func makeTitleLabel() {
titleLabel.font = .gd_default(14)
......
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