Commit 847793dd by ludi

修复一个相册崩溃问题

parent a0f386bf
......@@ -1618,7 +1618,9 @@ extension FUSChatCallHelper {
waitCountDownDisposeBag = .init()
callConnectSuccessDisposedBag = .init()
diamondAgainPay.accept(1)
otherFriendInfoDisposeBag = .init()
otherFriendInfoIsReady.accept(nil)
state.accept(.idle)
isCaller.accept(false)
callOrderId.accept(nil)
......
......@@ -617,11 +617,13 @@ extension FUSBindAgentViewController: AVCaptureMetadataOutputObjectsDelegate {
// MARK: - 相册图片处理‌:ml-citation{ref="6" data="citationList"}
extension FUSBindAgentViewController: UIImagePickerControllerDelegate, UINavigationControllerDelegate {
public func imagePickerController(_ picker: UIImagePickerController,
didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
guard let image = info[.originalImage] as? UIImage,
@objc public func imagePickerController(_ picker: UIImagePickerController,
didFinishPickingMediaWithInfo info: NSDictionary) {
guard let swiftInfo = info as? [AnyHashable: Any],
let image = swiftInfo[UIImagePickerController.InfoKey.originalImage] as? UIImage,
let ciImage = CIImage(image: image) else {
dismiss(animated: true)
picker.dismiss(animated: true)
return
}
......@@ -636,7 +638,7 @@ extension FUSBindAgentViewController: UIImagePickerControllerDelegate, UINavigat
}
guard let stringValue = features.first?.messageString else { return }
dismiss(animated: true)
picker.dismiss(animated: true)
// fus_uploadQrCodeMsg(stringValue) { [weak self] success in
// if success {
......
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