Compare commits

...

20 Commits

Author SHA1 Message Date
715dd2108e 更新 QyWeChatAppInfoMapperTest.java 2023-12-12 18:39:58 +08:00
391686628e 更新 WeChatMsgTest.java 2023-12-12 18:39:56 +08:00
09835f490e 更新 pom.xml 2023-12-12 18:31:45 +08:00
46a2de73ff Merge branch 'dev'
新增功能,微信消息转发,优化代码结构
2023-12-12 18:28:59 +08:00
fc80657dc5 Merge branch 'dev' 2023-12-09 14:39:54 +08:00
6ccd000785 更新 pom.xml 2023-12-09 14:19:43 +08:00
2be32c4d9f Merge branch 'dev'
解决计算时间差错误
2023-12-09 14:17:23 +08:00
8aea9de61c Merge branch 'dev' 2023-12-09 14:15:31 +08:00
4164b69aca 更新 HeartBeatServiceTest.java 2023-12-09 11:35:07 +08:00
4414ad9a26 更新 pom.xml 2023-12-09 11:35:03 +08:00
db949ace34 Merge branch 'dev'
新增服务监控功能。
2023-12-09 11:25:40 +08:00
68e4571077 更新 pom.xml 2023-12-06 16:51:01 +08:00
1d3eaf451f Merge branch 'dev' 2023-12-06 16:48:10 +08:00
e8ccd78a39 更新 pom.xml 2023-12-06 11:15:56 +08:00
3324865570 更新 pom.xml 2023-12-06 11:05:18 +08:00
9e42d4676a 创建 application.yml 2023-12-06 11:03:58 +08:00
6bb83e186d 更新 .gitignore 2023-12-06 11:03:54 +08:00
6923440a89 删除 application.yml 2023-12-06 10:46:53 +08:00
8d39b4938a 更新 .gitignore 2023-12-06 10:44:55 +08:00
b40f5cc0c4 更新 application.yml 2023-12-06 10:43:53 +08:00
4 changed files with 14 additions and 9 deletions

View File

@@ -9,11 +9,14 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<!-- 打包文件名版本信息 -->
<groupId>com.kimgo</groupId>
<artifactId>wePush</artifactId>
<version>1.0.0</version>
<version>1.1.3</version>
<name>wePush</name>
<description>wePush</description>
<description>Added new function, WeChat notification forwarding</description>
<properties>
<java.version>17</java.version>
</properties>

View File

@@ -1,3 +1,3 @@
spring:
profiles:
active: dev
active: prod

View File

@@ -15,6 +15,7 @@ public class QyWeChatAppInfoMapperTest {
@Autowired
private QyWeChatAppInfoMapper qyWeChatAppInfoMapper;
@Test
public void testSelect() {
System.out.println(("----- select by id test ------"));
@@ -41,12 +42,12 @@ public class QyWeChatAppInfoMapperTest {
System.out.println("Test complete");
}
@Test
public void testAllColum(){
for (int i = 1; i < 12; i++) {
QyWeChatAppInfo qyWeChatAppInfo = qyWeChatAppInfoMapper.selectById(i);
PhoneNumberValidation phoneNumberValidation = new PhoneNumberValidation();
phoneNumberValidation.isValidPhoneNumber(qyWeChatAppInfo.getPhoneNumber());
}
public void testAllColum() {
QyWeChatAppInfo qyWeChatAppInfo = qyWeChatAppInfoMapper.selectById(1);
PhoneNumberValidation phoneNumberValidation = new PhoneNumberValidation();
phoneNumberValidation.isValidPhoneNumber(qyWeChatAppInfo.getPhoneNumber());
}
}

View File

@@ -13,6 +13,7 @@ class WeChatMsgTest {
weChatMsg.setTitle("Example Title");
weChatMsg.setSender("Example Sender");
weChatMsg.setMessage("Example Message");
weChatMsg.setCurrentTime("dqdd");
assertFalse(weChatMsg.isInvalid(), "WeChatMsg should be valid when all fields are valid.");
}