🎨 修改文件位置
This commit is contained in:
parent
97260dcb6e
commit
b34cfd017f
@ -13,9 +13,9 @@
|
|||||||
overdueAdvent 计算临期/超期天数
|
overdueAdvent 计算临期/超期天数
|
||||||
|
|
||||||
### 消息推送类
|
### 消息推送类
|
||||||
1 wxMod 微信公众号模板消息推送
|
1 wx 微信公众号模板消息推送
|
||||||
wxMod.WxRequestController 微信请求本服务接口 用于验证
|
wx.WxRequestController 微信请求本服务接口 用于验证
|
||||||
wxMod.WxSendMsgController 微信公众号发送消息(用于消息模板类的消息推送通知)
|
wx.WxSendMsgController 微信公众号发送消息(用于消息模板类的消息推送通知)
|
||||||
前提:需要提前准备一个微信公众号,个人订阅号无效,可申请注册微信测试号
|
前提:需要提前准备一个微信公众号,个人订阅号无效,可申请注册微信测试号
|
||||||
|
|
||||||
2 mail 邮件发送工具。由于依赖停止维护,请谨慎使用
|
2 mail 邮件发送工具。由于依赖停止维护,请谨慎使用
|
||||||
|
@ -6,7 +6,7 @@ import utils.*;
|
|||||||
import utils.page.PageHelper;
|
import utils.page.PageHelper;
|
||||||
import utils.page.PageResp;
|
import utils.page.PageResp;
|
||||||
import utils.response.VoResult;
|
import utils.response.VoResult;
|
||||||
import wxMod.WxSendMsgController;
|
import wx.WxSendMsgController;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
@ -45,22 +45,6 @@ public class Test {
|
|||||||
System.out.println(timeOverdueAdventPojo);
|
System.out.println(timeOverdueAdventPojo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 发送公众号模板消息
|
|
||||||
* wxMod 使用演示
|
|
||||||
*/
|
|
||||||
public static void wxTest(){
|
|
||||||
WxSendMsgController.sendMsgMod("标题", "内容");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 邮件发送
|
|
||||||
* mail 使用演示
|
|
||||||
*/
|
|
||||||
public static void mailTest() throws Exception {
|
|
||||||
Mail.sendMail("发件地址","密钥","收件地址","标题", "内容");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AES/CBC/PKCS7Padding 加解密
|
* AES/CBC/PKCS7Padding 加解密
|
||||||
* CryptoUtils 使用演示 文件加密/解密
|
* CryptoUtils 使用演示 文件加密/解密
|
||||||
|
@ -28,17 +28,6 @@
|
|||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
<version>8.0.33</version>
|
<version>8.0.33</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jooq</groupId>
|
|
||||||
<artifactId>jooq</artifactId>
|
|
||||||
<version>3.14.8</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jooq</groupId>
|
|
||||||
<artifactId>jooq-meta-extensions</artifactId>
|
|
||||||
<version>3.14.8</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jooq</groupId>
|
<groupId>org.jooq</groupId>
|
||||||
<artifactId>jooq-codegen-maven</artifactId>
|
<artifactId>jooq-codegen-maven</artifactId>
|
||||||
|
@ -15,12 +15,6 @@ public class FeiShu {
|
|||||||
|
|
||||||
private static final RestTemplate restTemplate = new RestTemplate();
|
private static final RestTemplate restTemplate = new RestTemplate();
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
|
|
||||||
//cardMsg("飞书机器人发送地址","测试标题", "测试内容");
|
|
||||||
//cardMsg("飞书机器人发送地址","测试标题", "测试内容", "click me :兔子:", "http://www.fuhouyin.com");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 卡片消息-带按钮
|
* 卡片消息-带按钮
|
||||||
* @param hearTitle 标题
|
* @param hearTitle 标题
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package wxMod;
|
package wx;
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
@ -1,4 +1,4 @@
|
|||||||
package wxMod;
|
package wx;
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
Loading…
x
Reference in New Issue
Block a user