From df36fb802a90d7cfc5f65dd5551ba42d8b4e6000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=9C=E9=A3=8E?= <1335799468@qq.com> Date: Mon, 27 Nov 2023 23:50:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=90=88=E5=B9=B6=E5=BD=B1?= =?UTF-8?q?=E5=93=8D=E7=9A=84=E9=85=8D=E7=BD=AEdemo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/sms4j-spring-boot-example/src/main/resources/application.yml b/sms4j-spring-boot-example/src/main/resources/application.yml index 630a9347..4d6b6734 100644 --- a/sms4j-spring-boot-example/src/main/resources/application.yml +++ b/sms4j-spring-boot-example/src/main/resources/application.yml @@ -1,6 +1,8 @@ sms: # 标注从yml读取配置 config-type: yaml + # 账户上限 + account-max: 1 blends: # 阿里短信例子 ali: @@ -60,11 +62,35 @@ sms: template-id: pub_verif_short # 模版名称 templateName: code + # 渠道上限 + maximum: 2 + lianlu: + supplier: lianlu + templateId: 模板id + appId: 100116 + appKey: d42d7 + mchId: 100 + signName: 【test】 + cloopen: + # 短信厂商 + supplier: cloopen + base-url: https://app.cloopen.com:8883/2013-12-26 + access-key-id: 你的Access Key + access-key-secret: 你的Access Key Secret + sdkAppId: 你的应用ID + #自定义广州掌骏短信,添加factory全路径。config,factory,SmsImpl复制其他默认实现即可,修改对应的supplier和发送核心逻辑即可 + zhangjun: + supplier: zhangjun + factory: org.dromara.sms4j.example.zhangjun.ZhangJunFactory + templateId: d2a****777 + appId: 64c52d2a****77775fe72e3 + sid: d2a****777 + url: https://sms.idowe.com/**/**/**/send sms-oa: config-type: yaml oas: oaDingTalkByYaml: # configId - isEnable: false # 表示该配置是否生效(默认生效,false表示不生效) + isEnable: true # 表示该配置是否生效(默认生效,false表示不生效) supplier: dingding # 厂商标识 tokenId: 您的accessKey sign: 您的sign