diff --git a/qyweixin/app_customer.go b/qyweixin/app_customer.go index 2e05adf..abc9b53 100644 --- a/qyweixin/app_customer.go +++ b/qyweixin/app_customer.go @@ -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{})