This commit is contained in:
jiangyong 2026-04-30 11:43:19 +08:00
parent 672496d34d
commit 1e666ae8e5
1 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"git.u8t.cn/open/gosdk/util" "git.u8t.cn/open/gosdk/util"
log "github.com/sirupsen/logrus"
"git.u8t.cn/open/goutil" "git.u8t.cn/open/goutil"
log "github.com/sirupsen/logrus"
"github.com/spf13/cast" "github.com/spf13/cast"
"time" "time"
) )
@ -78,7 +78,7 @@ func (g *GetuiSms) Token() string {
return g.token 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" reqUrl := "https://openapi-smsp.getui.com/v1/sps/push_sms_list"
params := make(map[string]interface{}) 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()) log.Errorf("http post [%s] error :%s", string(reqBody), err.Error())
return nil, err return nil, err
} }
fmt.Println(string(reqBody), string(rspBody))
_, err = g.getResult(rspBody) _, err = g.getResult(rspBody)
if err != nil { if err != nil {
log.Errorf("get Result error :%s", err.Error()) log.Errorf("get Result error :%s", err.Error())