| | |
| | | } |
| | | |
| | | override func setRx() { |
| | | // NotificationCenter.default.rx.notification(StartGame_Noti).take(until: self.rx.deallocated).subscribe(onNext: {[weak self] noti in |
| | | // guard let weakSelf = self else { return } |
| | | // if let gameId = noti.object as? Int{ |
| | | // Services.userDetails().subscribe(onNext: {[weak self] data in |
| | | // guard let weakSelf = self else { return } |
| | | // if let model = data.data{ |
| | | // Services.game_gameStart(gameId: gameId, spaceId: weakSelf.codeModel.space_id!, sutuId: weakSelf.codeModel.sutu_id!, userID: model.userId).subscribe(onNext: { _ in |
| | | // alertSuccess(msg: "启动成功") |
| | | // }) { error in |
| | | // |
| | | // }.disposed(by: weakSelf.disposeBag) |
| | | // } |
| | | // }).disposed(by: weakSelf.disposeBag) |
| | | // } |
| | | // }).disposed(by: disposeBag) |
| | | |
| | | } |
| | | |
| | | @IBAction func scanAction(_ sender: UIButton) { |