feat: 代客下单更新
This commit is contained in:
@@ -24,12 +24,13 @@ export type msgType = 'add' | 'reduce' | 'remove' | 'edit' | 'init' | 'cleanup'
|
||||
class WebSocketManager {
|
||||
private client: WebSocket | null = null;
|
||||
private connected: boolean = false;
|
||||
private shop_id = user.userInfo.shopId ? String(user.userInfo.shopId) : '';
|
||||
private initParams: ApifoxModel = {
|
||||
type: 'manage',
|
||||
account: `${user.userInfo.shopId}`,
|
||||
account: this.shop_id,
|
||||
operate_type: 'init',
|
||||
table_code: '',
|
||||
shop_id: `${user.userInfo.shopId}`,
|
||||
shop_id: this.shop_id,
|
||||
};
|
||||
private onMessage: (message: any) => void = function () { };
|
||||
private messageHandlers: Map<string, ((message: string) => void)[]> = new Map();
|
||||
|
||||
Reference in New Issue
Block a user