| | |
| | | t.append(weakSelf.experienceCourseModel!.day[selectIndex]) |
| | | } |
| | | Services.payCourse(courseId: weakSelf.courseId, num: n, oldCourseId: s, time: t).subscribe(onNext: {data in |
| | | alertSuccess(msg: "购买成功") |
| | | let vc = PaymentResultVC(result: .success, objType: .courseApply, handleVC: nil, courseConfigId: nil, againClouse: nil) |
| | | weakSelf.push(vc: vc) |
| | | }) { error in |
| | | |
| | | let vc = PaymentResultVC(result: .fail("购买失败", 0), objType: .courseApply, handleVC: nil, courseConfigId: nil, againClouse: nil) |
| | | weakSelf.push(vc: vc) |
| | | }.disposed(by: weakSelf.disposeBag) |
| | | } |
| | | } |