|
|
@@ -99,7 +99,7 @@ class MeetDetail extends Component {
|
|
|
|
|
|
EndMeetting = () => {
|
|
|
fetchPost(API.endMeeting, {
|
|
|
- teacherId:this.props.userInfo.userId,
|
|
|
+ teacherId:this.props.userInfo.user.userFunId,
|
|
|
meetingId: this.state.meetId
|
|
|
}, {}).then((response) => {
|
|
|
console.log('response', response)
|
|
|
@@ -133,7 +133,7 @@ class MeetDetail extends Component {
|
|
|
if (meetId == null || meetId == '') {
|
|
|
return
|
|
|
}
|
|
|
- console.log("teacherId:",this.props.userInfo.userId)
|
|
|
+ console.log("teacherId:",this.props.userInfo.user.userFunId)
|
|
|
console.log('meetId', this.props.match.params.meetId)
|
|
|
let meetBean = new MeetingBean()
|
|
|
meetBean.createTime = ''
|
|
|
@@ -149,7 +149,7 @@ class MeetDetail extends Component {
|
|
|
})
|
|
|
|
|
|
let params = {
|
|
|
- teacherId:this.props.userInfo.userId,
|
|
|
+ teacherId:this.props.userInfo.user.userFunId,
|
|
|
meetingId: meetId
|
|
|
}
|
|
|
fetchPost(API.getMeetingDetails, params, {})
|
|
|
@@ -179,7 +179,7 @@ class MeetDetail extends Component {
|
|
|
notifyStatus: response.data.meetingStatus
|
|
|
})
|
|
|
this.setState({
|
|
|
- showEndBtn: this.props.userInfo.userId == "" ? false : this.props.userInfo.userId == response.data.meetingCreator ? true : false
|
|
|
+ showEndBtn: this.props.userInfo.user.userFunId == "" ? false : this.props.userInfo.user.userFunId == response.data.meetingCreator ? true : false
|
|
|
}, function () {
|
|
|
console.log('showEndBtn', this.state.showEndBtn)
|
|
|
})
|