Authored by 陈峰

Merge branch 'hotfix/fix-url-params' into 'master'

修改url中的actId参数中的空格为+号



See merge request !2
@@ -94,7 +94,7 @@ export default class wheelSurf extends PureComponent { @@ -94,7 +94,7 @@ export default class wheelSurf extends PureComponent {
94 let updateCount = async (user) => { 94 let updateCount = async (user) => {
95 let result = await api.conf({ 95 let result = await api.conf({
96 uid: user.uid, 96 uid: user.uid,
97 - act_id: this.state.query.actId 97 + act_id: this.state.query.actId.replace(/ /g, '+')
98 }); 98 });
99 99
100 if (result && result.code === 200) { 100 if (result && result.code === 200) {
@@ -127,7 +127,7 @@ export default class wheelSurf extends PureComponent { @@ -127,7 +127,7 @@ export default class wheelSurf extends PureComponent {
127 } 127 }
128 } 128 }
129 129
130 - let params = {act_id: this.state.query.actId}; 130 + let params = {act_id: this.state.query.actId.replace(/ /g, '+')};
131 131
132 if (uid) { 132 if (uid) {
133 params.uid = uid; 133 params.uid = uid;
@@ -207,7 +207,7 @@ export default class wheelSurf extends PureComponent { @@ -207,7 +207,7 @@ export default class wheelSurf extends PureComponent {
207 207
208 try { 208 try {
209 result = await api.start({ 209 result = await api.start({
210 - act_id: this.state.query.actId, 210 + act_id: this.state.query.actId.replace(/ /g, '+'),
211 uid: this.state.user.uid, 211 uid: this.state.user.uid,
212 sessionKey: this.state.user.sessionKey, 212 sessionKey: this.state.user.sessionKey,
213 sessionType: this.state.user.sessionType, 213 sessionType: this.state.user.sessionType,
@@ -56,7 +56,7 @@ export default class Prize extends PureComponent { @@ -56,7 +56,7 @@ export default class Prize extends PureComponent {
56 let {uid} = user; 56 let {uid} = user;
57 57
58 let result = await api.prize({ 58 let result = await api.prize({
59 - act_id: yaSDK.getQueryObj().actId, 59 + act_id: yaSDK.getQueryObj().actId.replace(/ /g, '+'),
60 uid: uid || +yaSDK.getQueryObj().uid 60 uid: uid || +yaSDK.getQueryObj().uid
61 }); 61 });
62 62