From 1e1d52002863c1ff3ea74b2827958f15e6bf5e50 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 30 May 2023 15:32:40 +0800 Subject: [PATCH] test --- recharge/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recharge/api.go b/recharge/api.go index d8f90e8..878e4a7 100644 --- a/recharge/api.go +++ b/recharge/api.go @@ -9,11 +9,11 @@ import ( func send(method string, apiKey string, param map[string]string) (string, error) { url := "http://8.130.97.197/yrapi.php/" + method - param["sign"] = getSign(apiKey, param) + param["sign"] = GetRechargeSign(apiKey, param) post, err := zhios_third_party_utils.CurlPost(url, param, map[string]string{}) return string(post), err } -func getSign(apiKey string, param map[string]string) string { +func GetRechargeSign(apiKey string, param map[string]string) string { str := "" keys := comm.KsortToStr(param) for _, k := range keys {