Authored by shuaiguo

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

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