Compare commits
2 Commits
e135508572
...
69e86b2f70
Author | SHA1 | Date |
---|---|---|
胡锐 | 69e86b2f70 | 4 weeks ago |
胡锐 | 48a128be6a | 4 weeks ago |
File diff suppressed because one or more lines are too long
@ -0,0 +1,26 @@ |
|||||||
|
package com.hfkj.platform.aliyun.config; |
||||||
|
|
||||||
|
import com.aliyun.dysmsapi20170525.Client; |
||||||
|
import com.aliyun.teaopenapi.models.Config; |
||||||
|
|
||||||
|
/** |
||||||
|
* @className: AliyunConfig |
||||||
|
* @author: HuRui |
||||||
|
* @date: 2024/11/1 |
||||||
|
**/ |
||||||
|
public class AliyunConfig { |
||||||
|
|
||||||
|
/** |
||||||
|
* 构建客户端 |
||||||
|
* @return |
||||||
|
* @throws Exception |
||||||
|
*/ |
||||||
|
public static Client createClient() throws Exception { |
||||||
|
Config config = new Config() |
||||||
|
.setAccessKeyId("LTAI5tHpe3pnXx6CKLaHkq16") |
||||||
|
.setAccessKeySecret("rPN29MiECptHl3IhHVWl4fR8KJYhXj"); |
||||||
|
// 配置 Endpoint
|
||||||
|
config.endpoint = "dysmsapi.aliyuncs.com"; |
||||||
|
return new Client(config); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue