Authored by shuaiguo

fix(wheel surf): 大转盘解码:urlencoded 将+转为空格,解码报错

@@ -63,8 +63,10 @@ class ActWheelSurfModel extends global.yoho.BaseModel { @@ -63,8 +63,10 @@ class ActWheelSurfModel extends global.yoho.BaseModel {
63 }); 63 });
64 } 64 }
65 65
66 - async exportRecords(actId) { 66 + async exportRecords(actId = '') {
  67 + actId = actId.replace(/\s/g, '+');
67 actId = parseInt(aes.decryptUid(actId), 10); 68 actId = parseInt(aes.decryptUid(actId), 10);
  69 +
68 let len = await this.client.llenAsync(`turntable:${actId}:prize:user`); 70 let len = await this.client.llenAsync(`turntable:${actId}:prize:user`);
69 71
70 return this.client.lrangeAsync(`turntable:${actId}:prize:users`, 0, len - 1).then(prizes => { 72 return this.client.lrangeAsync(`turntable:${actId}:prize:users`, 0, len - 1).then(prizes => {