统一推送格式
This commit is contained in:
@@ -292,9 +292,7 @@ function randomPosition(positionStr: string, prePoint: Array<number>, curPoint:
|
||||
function pushEventMsg(sid: string, roleId: string, msg: any ) {
|
||||
let channelService = pinus.app.get('channelService');
|
||||
|
||||
let param = { msg };
|
||||
|
||||
channelService.pushMessageByUids('onSpecialEvent', param, [{
|
||||
channelService.pushMessageByUids('onSpecialEvent', resResult(STATUS.SUCCESS, msg), [{
|
||||
uid: roleId,
|
||||
sid: sid
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user