|
|
@@ -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(), |
|
|
|
} |
|
|
|