getuisms
This commit is contained in:
parent
672496d34d
commit
1e666ae8e5
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue