This commit is contained in:
jiangyong27 2024-01-23 23:10:05 +08:00
parent b24841dadb
commit f23e64d20b
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ func (a *AppCustomer) GetCustomerState(openKfid, externalUserid string) (*Custom
return state, nil
}
func (a *AppCustomer) SendCustomerText(toUser, openKfId, content string) error {
func (a *AppCustomer) SendCustomerText(openKfId, toUser, content string) error {
reqUrl := fmt.Sprintf("https://qyapi.weixin.qq.com/cgi-bin/kf/send_msg?access_token=%s", a.GetToken())
params := make(map[string]interface{})
params["touser"] = toUser
@ -191,7 +191,7 @@ func (a *AppCustomer) SendCustomerText(toUser, openKfId, content string) error {
}
return nil
}
func (a *AppCustomer) SyncMessage(cursor, token, openKfId string) ([]*CustomerMessage, string, error) {
func (a *AppCustomer) SyncMessage(openKfId, cursor, token string) ([]*CustomerMessage, string, error) {
reqUrl := fmt.Sprintf("https://qyapi.weixin.qq.com/cgi-bin/kf/sync_msg?access_token=%s", a.GetToken())
params := make(map[string]interface{})