jiuyiUniapp/jiuyi2/TUIKit/tui-customer-service-plugin/index.ts

19 lines
709 B
TypeScript
Raw Normal View History

2024-12-18 15:46:27 +08:00
import TUICustomerPluginServer from './server';
import { isMessageInvisible } from './utils/index';
const TUICustomerServer = TUICustomerPluginServer.getInstance();
// 判断消息是否为客服号的自定义消息
const isCustomerServicePluginMessage = TUICustomerServer.isCustomerServicePluginMessage.bind(TUICustomerServer);
// 设置客服号
const setCustomerServiceAccounts = TUICustomerServer.setCustomerServiceAccounts.bind(TUICustomerServer);
// 获取客服号
const getCustomerServiceAccounts = TUICustomerServer.getCustomerServiceAccounts.bind(TUICustomerServer);
export {
isCustomerServicePluginMessage,
isMessageInvisible,
setCustomerServiceAccounts,
getCustomerServiceAccounts,
};