servicer list3

This commit is contained in:
jiangyong27 2024-01-23 22:41:48 +08:00
parent 6c713ac9b9
commit b24841dadb
1 changed files with 6 additions and 6 deletions

View File

@ -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 {