Showing
1 changed file
with
33 additions
and
0 deletions
untitled
0 → 100644
| 1 | + | ||
| 2 | + // 多人呼叫不能选自己和非独立子账户 | ||
| 3 | + if isMultCall() { | ||
| 4 | + let member = members?[indexPath.row] | ||
| 5 | + if member?.uuid == AccountManager.default.getUUid() { | ||
| 6 | + let alert = UIAlertController(title: nil, message: "不能邀请自己视频", preferredStyle: .alert) | ||
| 7 | + alert.addAction(UIAlertAction(title: "我知道了", style: .default, handler: nil)) | ||
| 8 | + | ||
| 9 | + topviewController()?.present(alert, animated: true, completion: nil) | ||
| 10 | + removeSelf() | ||
| 11 | + return | ||
| 12 | + } else if !(member?.isAccount ?? false) { | ||
| 13 | + let alert = UIAlertController(title: nil, message: "该成员需要开通独立登录的功能才能一起视频", preferredStyle: .alert) | ||
| 14 | + alert.addAction(UIAlertAction(title: "去开通", style: .default, handler: { (_) in | ||
| 15 | + let aVC = HHAddMemberVC.create() | ||
| 16 | + aVC.addState = .supplyMulty | ||
| 17 | + aVC.model = member | ||
| 18 | + topviewController()?.navigationController?.pushViewController(aVC, animated: true) | ||
| 19 | + })) | ||
| 20 | + alert.addAction(UIAlertAction(title: "取消", style: .default, handler: nil)) | ||
| 21 | + topviewController()?.present(alert, animated: true, completion: nil) | ||
| 22 | + removeSelf() | ||
| 23 | + return | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + let callInfo = HHCallerInfo() | ||
| 27 | + callInfo.uuid = member?.uuid | ||
| 28 | + callInfo.photourl = member?.photourl | ||
| 29 | + callInfo.name = member?.name | ||
| 30 | + HHMSDK.default.startTeamCall(.adult, callee: callInfo) | ||
| 31 | + removeSelf() | ||
| 32 | + return | ||
| 33 | + } |
-
Please register or login to post a comment