diff --git a/didi/api.go b/didi/api.go index b4122d0..54f255b 100644 --- a/didi/api.go +++ b/didi/api.go @@ -27,14 +27,14 @@ func GetDidiUrl(key, secret string, param map[string]interface{}) map[string]str return res } func GetDidiQrcode(key, secret string, param map[string]interface{}) map[string]string { - send, _ := GetSend("/openapi/v1.0/code/generate", key, secret, param) + send, _ := GetSendJson("/openapi/v1.0/code/generate", key, secret, param) res := map[string]string{ "code_link": gjson.Get(send, "data.code_link").String(), } return res } func GetDidiPoster(key, secret string, param map[string]interface{}) map[string]string { - send, _ := GetSend("/openapi/v1.0/poster/generate", key, secret, param) + send, _ := GetSendJson("/openapi/v1.0/poster/generate", key, secret, param) res := map[string]string{ "poster_link": gjson.Get(send, "data.poster_link").String(), }