From b24841dadb77e259584f695a910919a82aad390b Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Tue, 23 Jan 2024 22:41:48 +0800 Subject: [PATCH] servicer list3 --- qyweixin/app_customer.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qyweixin/app_customer.go b/qyweixin/app_customer.go index 69367ce..2e05adf 100644 --- a/qyweixin/app_customer.go +++ b/qyweixin/app_customer.go @@ -23,11 +23,11 @@ var ( EventTypeEnterSession = "enter_session" EventTypeSessionChange = "session_status_change" - CustomerStateEnterSession = 0 - CustomerStateRobot = 1 - CustomerStateWaitPool = 2 - CustomerStateServicing = 3 - CustomerStateComplete = 4 + CustomerStateEnterSession = 0 //未处理,新会话,用户已发消息 + CustomerStateRobot = 1 //由智能助手接待 + CustomerStateWaitPool = 2 //待接入池排队中 + CustomerStateServicing = 3 //由人工接待 + CustomerStateComplete = 4 //已结束/未开始 ) type CustomerAccount struct { @@ -110,7 +110,7 @@ func (a *AppCustomer) AccountList() ([]*CustomerAccount, error) { } func (a *AppCustomer) ServicerList(openKfid string) ([]*CustomerServicer, error) { - reqUrl := fmt.Sprintf("https://qyapi.weixin.qq.com/cgi-bin/kf/service_state/trans?access_token=%s&open_kfid=%s", a.GetToken(), openKfid) + reqUrl := fmt.Sprintf("https://qyapi.weixin.qq.com/cgi-bin/kf/servicer/list?access_token=%s&open_kfid=%s", a.GetToken(), openKfid) rspBody, err := util.HttpGet(reqUrl, nil) if err != nil {