Compare commits
No commits in common. '69e86b2f70a4665290b824690c5295f4c24fc39a' and 'e135508572732acb5674247fc90b42606a66b716' have entirely different histories.
69e86b2f70
...
e135508572
File diff suppressed because one or more lines are too long
@ -1,26 +0,0 @@ |
|||||||
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