财务系统支行信息

This commit is contained in:
renzhiyuan 2025-10-22 20:25:32 +08:00
parent e9084c955d
commit b84c7d09d8
2 changed files with 7 additions and 8 deletions

View File

@ -43,8 +43,8 @@ const (
)
var smsBusinessWithRequestPath = map[SmsBusiness]requestPathIndex{
SmsBusinessHs: sendSms,
SmsBusinessDefault: sendSmsHs,
SmsBusinessHs: sendSmsHs,
SmsBusinessDefault: sendSms,
}
type RequestWay int8

View File

@ -3,26 +3,25 @@ package test
import (
"context"
"fmt"
"gitea.cdlsxd.cn/self-tools/l_msg_api"
"testing"
"gitea.cdlsxd.cn/self-tools/l_msg_api"
)
const (
ClientKey = "ymt"
ClientSecret = "ymt"
ClientKey = "finance"
ClientSecret = "finance"
serverHost = "http://121.199.38.107:8000"
local = "http://127.0.0.1:8001"
)
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 {
panic(err)
}
res, err := msg.SendSms(context.TODO(), []string{"15082245107"}, `{"content": "测试"}`)
fmt.Println(res, err)
}
func TestAccess(t *testing.T) {