|
@@ -441,12 +441,6 @@ export default {
|
|
|
common.startLive();
|
|
|
},
|
|
|
|
|
|
- getStudentInfo_Connection() {
|
|
|
- return GetStudentInfo_Connection({ task_id: this.task_id }).then(
|
|
|
- ({ room_user_id }) => room_user_id
|
|
|
- );
|
|
|
- },
|
|
|
-
|
|
|
getLiveStat() {
|
|
|
common.getLiveStat({
|
|
|
success: data => {
|
|
@@ -536,20 +530,30 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- // 下麦
|
|
|
handsDown(uid) {
|
|
|
let connectUid = typeof uid === 'string' ? uid : this.connectUid;
|
|
|
+ if (connectUid.length === 0) {
|
|
|
+ GetStudentInfo_Connection({ task_id: this.task_id }).then(({ room_user_id }) =>
|
|
|
+ this.handsDown_Live(room_user_id)
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ this.handsDown_Live(connectUid);
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 下麦
|
|
|
+ handsDown_Live(uid) {
|
|
|
common.handsDown({
|
|
|
- uid: connectUid,
|
|
|
+ uid,
|
|
|
success: str => {
|
|
|
if (this.callLoading) {
|
|
|
common.sendPublishMessage({
|
|
|
type: 'handsDown-load',
|
|
|
- uid: connectUid
|
|
|
+ uid
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- this.dealStudentConnection(connectUid, 0, this.connectStudent.connection_mode);
|
|
|
+ this.dealStudentConnection(uid, 0, this.connectStudent.connection_mode);
|
|
|
|
|
|
this.callLoading = false;
|
|
|
this.connect = false;
|