测试:修复合成bug

This commit is contained in:
luying
2021-09-02 21:23:04 +08:00
parent 2609177092
commit 8505b24696
3 changed files with 10 additions and 11 deletions

View File

@@ -30,11 +30,15 @@ export class GachaHandler {
* @memberof GachaHandler
*/
async getGachaList(msg: {}, session: BackendSession) {
const { } = msg;
const roleId: string = session.get('roleId');
const list = await getGachaList(roleId);
return resResult(STATUS.SUCCESS, { list });
try {
const { } = msg;
const roleId: string = session.get('roleId');
const list = await getGachaList(roleId);
return resResult(STATUS.SUCCESS, { list });
}catch(e) {
return resResult(STATUS.WRONG_PARMS, {err:e.stack})
}
}
/**