|
@@ -37,16 +37,16 @@ const handlePopoverItem = async ({ state, label }) => {
|
|
|
* 疑问:中途切换 获取坐席状态
|
|
|
* */
|
|
|
await voiceStore.getAgentStatus();
|
|
|
- console.log( "坐席状态", voiceStore.AGENTSTATUS );
|
|
|
- console.log( "系统状态", voiceStore.HSCTIERRORCODE );
|
|
|
- if ( voiceStore.AGENTSTATUS == 0 ) {
|
|
|
+ // console.log( "坐席状态", voiceStore.AGENTSTATUS );
|
|
|
+ // console.log( "系统状态", voiceStore.HSCTIERRORCODE );
|
|
|
+ if ( voiceStore.AGENTSTATUS == 0 && ![100001, 100002].includes(Number(voiceStore.HSCTIERRORCODE))) {
|
|
|
workbenchApi.getSeatsByUser({ userId: userStore.id }).then(async({ data }) => {
|
|
|
if (!data) return;
|
|
|
voiceStore.HS_CTI_INSTANCE(data.outId);
|
|
|
setTimeout(async () => {
|
|
|
await voiceStore.getAgentStatus();
|
|
|
- console.log( "坐席状态 下", voiceStore.AGENTSTATUS );
|
|
|
- console.log( "系统状态 下", voiceStore.HSCTIERRORCODE );
|
|
|
+ // console.log( "坐席状态 下", voiceStore.AGENTSTATUS );
|
|
|
+ // console.log( "系统状态 下", voiceStore.HSCTIERRORCODE );
|
|
|
// if ( !([100001, 100002].includes( Number(voiceStore.HSCTIERRORCODE)) ) ) {
|
|
|
if ( voiceStore.AGENTSTATUS != 0 ) {
|
|
|
state ? await voiceStore.setIdle() : await voiceStore.setBusy();
|