parent
e4ea430426
commit
48a128be6a
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