团购:基础接口

This commit is contained in:
luying
2022-10-09 19:11:29 +08:00
parent 9ba3081e54
commit 2d3a1c7c30
16 changed files with 542 additions and 5 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ export function privateRoomId(roleId: string, targetRoleId: string) {
* @param {string} channelId
* @returns
*/
export function groupRoomId(channel: string, channelId: string | number) {
return `${channel}_${channelId}`;
export function groupRoomId(channel: string, channelId?: string | number) {
return channelId?`${channel}_${channelId}`: `${channel}`;
}
function msgCounterName(roomId: string) {