Authored by 邱骏

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

... ... @@ -91,10 +91,10 @@ export default class wheelSurf extends PureComponent {
}
};
let updateCount = async (user) => {
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,
... ...
... ... @@ -54,9 +54,9 @@ export default class Prize extends PureComponent {
async componentDidMount() {
let user = await yaSDK.getUser();
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
});
... ...