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 {