Commit 47ab9226 by FE

Merge branch 'master' of gitlab.julyedu.com:baiguangyao/mr-julyedu

parents cee9c07a 06f8d3b4
...@@ -125,8 +125,8 @@ class Order extends Component { ...@@ -125,8 +125,8 @@ class Order extends Component {
http.post(`${API['base-api']}/pdd/m`, {course_id: getParam("id"),ischeck:this.state.useBalance}).then(res => { http.post(`${API['base-api']}/pdd/m`, {course_id: getParam("id"),ischeck:this.state.useBalance}).then(res => {
if(res.data.errno === 200) { if(res.data.errno === 200) {
sessionStorage.removeItem('orderUseCacheObj'); sessionStorage.removeItem('orderUseCacheObj');
if (res.data.data.is_free === 1) { if (res.data.data.pay_jump === 1) {
this.props.history.push(`/togroup?id=${res.data.data.order_id}`); this.props.history.push(`/togroup?id=${res.data.data.pdd_order_id}`);
return; return;
} }
this.props.history.replace(`/payorder?oid=${res.data.data.oid}`); this.props.history.replace(`/payorder?oid=${res.data.data.oid}`);
......
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