Commit 29103307 by zhanghaozhe

限时免费

parent 3f2f71a9
......@@ -25,10 +25,6 @@ class LimitFree extends Component {
}
componentDidMount() {
const {user, history} = this.props
if (user.hasError) {
history.push('/passport')
}
this.getData()
}
......@@ -71,6 +67,11 @@ class LimitFree extends Component {
}
getCourse = (courseId, vCourseId) => {
const {user, history} = this.props
if (user.hasError) {
history.push('/passport')
return
}
http.post(`${API.home}/sys/limitFree/receive`, {
course_id: courseId
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment