mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-07 17:38:38 +08:00
修改错误的README
This commit is contained in:
parent
f2e273f0ef
commit
c1dc5062a4
18
README.md
18
README.md
@ -1,9 +1,9 @@
|
||||
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sms4j v3.0.0</h1>
|
||||
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sms4j v3.1.0</h1>
|
||||
<h4 align="center" style="margin: 30px 0 30px; font-weight: bold;">sms4j -- 让发送短信变的更简单</h4>
|
||||
<p align="center">
|
||||
<a href="https://gitee.com/dromara/sms4j/stargazers"><img src="https://gitee.com/dromara/sms4j/badge/star.svg?theme=gvp"></a>
|
||||
<a href="https://gitee.com/dromara/sms4j/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-green"></a>
|
||||
<a href="https://gitee.com/dromara/sms4j"><img src="https://img.shields.io/badge/version-v3.0.0-blue"></a>
|
||||
<a href="https://gitee.com/dromara/sms4j"><img src="https://img.shields.io/badge/version-v3.1.0-blue"></a>
|
||||
</p>
|
||||
<img src="/public/logo.png">
|
||||
|
||||
@ -48,7 +48,9 @@
|
||||
|
||||
```yaml
|
||||
sms:
|
||||
alibaba:
|
||||
config-type: yaml
|
||||
blends:
|
||||
自定义标识1:
|
||||
#阿里云的accessKey
|
||||
accessKeyId: 您的accessKey
|
||||
#阿里云的accessKeySecret
|
||||
@ -61,7 +63,7 @@
|
||||
templateName: code
|
||||
#请求地址 默认为dysmsapi.aliyuncs.com 如无特殊改变可以不用设置
|
||||
requestUrl: dysmsapi.aliyuncs.com
|
||||
huawei:
|
||||
自定义标识2:
|
||||
#华为短信appKey
|
||||
appKey: 5N6fvXXXX920HaWhVXXXXXX7fYa
|
||||
#华为短信appSecret
|
||||
@ -76,7 +78,7 @@
|
||||
statusCallBack:
|
||||
#华为分配的app请求地址
|
||||
url: https://XXXXX.cn-north-4.XXXXXXXX.com:443
|
||||
zhutong:
|
||||
自定义标识3:
|
||||
#助通短信
|
||||
#助通终端用户管理的用户名 username 必填;非登录账号密码,请登录后台管理地址进行查看:https://mix2.zthysms.com/login
|
||||
accessKeyId: tushu1122XXX
|
||||
@ -95,11 +97,11 @@ public class DemoController {
|
||||
|
||||
// 测试发送固定模板短信
|
||||
@RequestMapping("/")
|
||||
public void doLogin(String username, String password) {
|
||||
public void send() {
|
||||
//阿里云向此手机号发送短信
|
||||
SmsFactory.createSmsBlend(SupplierType.ALIBABA).sendMessage("18888888888","123456");
|
||||
SmsFactory.getSmsBlend("自定义标识1").sendMessage("18888888888","123456");
|
||||
//华为短信向此手机号发送短信
|
||||
SmsFactory.createSmsBlend(SupplierType.HUAWEI).sendMessage("16666666666","000000");
|
||||
SmsFactory.getSmsBlend("自定义标识2").sendMessage("16666666666","000000");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user