财务系统支行信息
This commit is contained in:
parent
e9084c955d
commit
b84c7d09d8
4
const.go
4
const.go
|
|
@ -43,8 +43,8 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var smsBusinessWithRequestPath = map[SmsBusiness]requestPathIndex{
|
var smsBusinessWithRequestPath = map[SmsBusiness]requestPathIndex{
|
||||||
SmsBusinessHs: sendSms,
|
SmsBusinessHs: sendSmsHs,
|
||||||
SmsBusinessDefault: sendSmsHs,
|
SmsBusinessDefault: sendSms,
|
||||||
}
|
}
|
||||||
|
|
||||||
type RequestWay int8
|
type RequestWay int8
|
||||||
|
|
|
||||||
|
|
@ -3,26 +3,25 @@ package test
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"gitea.cdlsxd.cn/self-tools/l_msg_api"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"gitea.cdlsxd.cn/self-tools/l_msg_api"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ClientKey = "ymt"
|
ClientKey = "finance"
|
||||||
ClientSecret = "ymt"
|
ClientSecret = "finance"
|
||||||
serverHost = "http://121.199.38.107:8000"
|
serverHost = "http://121.199.38.107:8000"
|
||||||
local = "http://127.0.0.1:8001"
|
local = "http://127.0.0.1:8001"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSms(t *testing.T) {
|
func TestSms(t *testing.T) {
|
||||||
msg, err := l_msg_api.NewMessageCenter(serverHost, ClientKey, ClientSecret, "sms", "sms")
|
msg, err := l_msg_api.NewMessageCenter(serverHost, ClientKey, ClientSecret, "sms2", "cron_sms2")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
res, err := msg.SendSms(context.TODO(), []string{"15082245107"}, `{"content": "测试"}`)
|
res, err := msg.SendSms(context.TODO(), []string{"15082245107"}, `{"content": "测试"}`)
|
||||||
fmt.Println(res, err)
|
fmt.Println(res, err)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAccess(t *testing.T) {
|
func TestAccess(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue