//
//  AppDelegate + UIAppearance.swift
//  SleepDoctor
//
//  Created by DAVIDiOS1 on 2020/12/24.
//  Copyright © 2020 sumian. All rights reserved.
//

import UIKit
// MARK: - Pay 支付
extension AppDelegate {
    
    func payCallback(url: URL) {
//        //支付宝支付
//        if url.host == "safepay" {
//            AlipaySDK.defaultService().processOrder(withPaymentResult: url, standbyCallback: { resultDic in
//                let status = resultDic?["resultStatus"] as? String ?? ""
//                var success: Bool = false
//                if status == "9000" {
//                    success = true
//                    print("支付宝: 支付成功")
//                } else {
//                    success = false
//                    print("支付宝: 支付失败")
//                }
//                NotificationCenter.default.post(name: BsConstant.BsNotification.payResultNotification, object: success)
//            })
//        }
    }
    
}

