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 {
let updateCount = async (user) => {
let result = await api.conf({
uid: user.uid,
act_id: this.state.query.actId
act_id: this.state.query.actId.replace(/ /g, '+')
});
if (result && result.code === 200) {
... ... @@ -127,7 +127,7 @@ export default class wheelSurf extends PureComponent {
}
}
let params = {act_id: this.state.query.actId};
let params = {act_id: this.state.query.actId.replace(/ /g, '+')};
if (uid) {
params.uid = uid;
... ... @@ -207,7 +207,7 @@ export default class wheelSurf extends PureComponent {
try {
result = await api.start({
act_id: this.state.query.actId,
act_id: this.state.query.actId.replace(/ /g, '+'),
uid: this.state.user.uid,
sessionKey: this.state.user.sessionKey,
sessionType: this.state.user.sessionType,
... ...
... ... @@ -56,7 +56,7 @@ export default class Prize extends PureComponent {
let {uid} = user;
let result = await api.prize({
act_id: yaSDK.getQueryObj().actId,
act_id: yaSDK.getQueryObj().actId.replace(/ /g, '+'),
uid: uid || +yaSDK.getQueryObj().uid
});
... ...