fix
杨锴
2024-10-09 eece4c0049104e18e473c94078d3e3f884e392e9
fix
1个文件已修改
21 ■■■■■ 已修改文件
WanPai/Root/Home/VC/HomeVC.swift 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WanPai/Root/Home/VC/HomeVC.swift
@@ -235,27 +235,6 @@
                }
                @IBAction func scanAction(_ sender: UIButton) {
        if let model = QRCodeModel.deserialize(from: "{\"scan_type\": 1000, \"space_id\": 27, \"sutu_id\": 1036}"){
            if model.scan_type == .games{
                let gamesListVC = GamesListVC(model: model)
                self.push(vc: gamesListVC)
            }else if model.scan_type == .yard{
                let vc = YardDetailVC(id: model.id!)
                self.push(vc: vc)
            }else if model.scan_type == .course{
                let vc = CourseDetailVC(id: model.id!)
                self.push(vc: vc)
            }
        }else{
            alertError(msg: "识别失败")
        }
return
                                let codeVC = CommonScanQRCodeVC {[weak self] text, status in
                                                if status{
                                                                if let model = QRCodeModel.deserialize(from: text){