change
This commit is contained in:
parent
b24841dadb
commit
f23e64d20b
|
@ -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{})
|
||||
|
||||
|
|
Loading…
Reference in New Issue