团购:基础接口
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user