无故事王国
2023-10-20 6382df7f214503697f041631bd7fdbc5db2c6149
WanPai/Root/Other/VC/ProfileVC.swift
@@ -45,7 +45,6 @@
            if status{
                UserViewModel.clearToken()
            app.needLogin()
            }
        }
    }
@@ -55,8 +54,9 @@
         self.profileImg = image
         self.btn_userProfile.setImage(image, for: .normal)
         image.uploadImgToService().subscribe { text in
            Services.updateUserProfile(text).subscribe(onNext: {_ in
            Services.updateUserProfile(text).subscribe(onNext: {[weak self] _ in
               alertSuccess(msg: "修改成功")
               self?.btn_userProfile.sd_setImage(with: URL(string: text), for: .normal,placeholderImage: UIImage(named: "btn_userProfile"))
               NotificationCenter.default.post(name: UpdateWelfare_Noti, object: nil)
            }) { error in
               alertError(msg: error.localizedDescription)