From 1e666ae8e565636069c63211268d6d7767e0674f Mon Sep 17 00:00:00 2001 From: jiangyong Date: Thu, 30 Apr 2026 11:43:19 +0800 Subject: [PATCH] getuisms --- push/getui_sms.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/push/getui_sms.go b/push/getui_sms.go index 6a7b480..dc6de0a 100644 --- a/push/getui_sms.go +++ b/push/getui_sms.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" "git.u8t.cn/open/gosdk/util" - log "github.com/sirupsen/logrus" "git.u8t.cn/open/goutil" + log "github.com/sirupsen/logrus" "github.com/spf13/cast" "time" ) @@ -78,7 +78,7 @@ func (g *GetuiSms) Token() string { return g.token } -func (g *GetuiSms) Send(phone string, data map[string]string) (interface{}, error) { +func (g *GetuiSms) Send(phone string, data string) (interface{}, error) { reqUrl := "https://openapi-smsp.getui.com/v1/sps/push_sms_list" params := make(map[string]interface{}) @@ -93,7 +93,7 @@ func (g *GetuiSms) Send(phone string, data map[string]string) (interface{}, erro log.Errorf("http post [%s] error :%s", string(reqBody), err.Error()) return nil, err } - fmt.Println(string(reqBody), string(rspBody)) + _, err = g.getResult(rspBody) if err != nil { log.Errorf("get Result error :%s", err.Error())