| | |
| | | /** |
| | | * 各种 {@link SmsClient} 的集成测试 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | public class SmsClientTests { |
| | | |
| | |
| | | SmsChannelProperties properties = new SmsChannelProperties() |
| | | .setApiKey(System.getenv("SMS_TENCENT_ACCESS_KEY") + " " + sdkAppId) |
| | | .setApiSecret(System.getenv("SMS_TENCENT_SECRET_KEY")) |
| | | .setSignature("芋道源码"); |
| | | .setSignature("超级管理员"); |
| | | TencentSmsClient client = new TencentSmsClient(properties); |
| | | // 准备参数 |
| | | Long sendLogId = System.currentTimeMillis(); |
| | |
| | | SmsChannelProperties properties = new SmsChannelProperties() |
| | | .setApiKey(System.getenv("SMS_TENCENT_ACCESS_KEY") + " " + sdkAppId) |
| | | .setApiSecret(System.getenv("SMS_TENCENT_SECRET_KEY")) |
| | | .setSignature("芋道源码"); |
| | | .setSignature("超级管理员"); |
| | | TencentSmsClient client = new TencentSmsClient(properties); |
| | | // 准备参数 |
| | | String apiTemplateId = "358212"; |