Compare commits

..

No commits in common. '69e86b2f70a4665290b824690c5295f4c24fc39a' and 'e135508572732acb5674247fc90b42606a66b716' have entirely different histories.

  1. 2
      cweb/src/main/java/com/hfkj/controller/SmsController.java
  2. 6
      service/pom.xml
  3. 26
      service/src/main/java/com/hfkj/platform/aliyun/config/AliyunConfig.java

File diff suppressed because one or more lines are too long

@ -290,12 +290,6 @@
<version>1.0.1</version> <version>1.0.1</version>
<systemPath>${basedir}/lib/pop-sdk-1.18.23-all.jar</systemPath> <systemPath>${basedir}/lib/pop-sdk-1.18.23-all.jar</systemPath>
</dependency> </dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>dysmsapi20170525</artifactId>
<version>3.0.0</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
<resources> <resources>

@ -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…
Cancel
Save