测试:修复军团排行榜

This commit is contained in:
luying
2021-09-03 09:37:58 +08:00
parent 4c590c8952
commit efc3776f74
3 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ function errorHandler(err: Error, msg: any, resp: any,
errlogger.error(`${pinus.app.serverId} error handler \n msg[${JSON.stringify(msg)}] \n resp[${JSON.stringify(resp)}] \n sessionId:${JSON.stringify(session.export())} \n error 【${errCode}】 stack: ${err.stack}`);
if (!resp) {
resp = resResult(STATUS.GLOBAL_ERR, { errCode });
resp = resResult(STATUS.GLOBAL_ERR, { errCode, stack: err.stack });
}
cb(err, resp);
}
@@ -30,15 +30,11 @@ export class GachaHandler {
* @memberof GachaHandler
*/
async getGachaList(msg: {}, session: BackendSession) {
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})
}
const { } = msg;
const roleId: string = session.get('roleId');
const list = await getGachaList(roleId);
return resResult(STATUS.SUCCESS, { list });
}
/**