Compare commits
No commits in common. "97ebb4bf2d40726e177a104fe74d95bc69d53b3f" and "715dd2108e2bb72e11d6616e9e6013b7afdb129f" have entirely different histories.
97ebb4bf2d
...
715dd2108e
|
|
@ -49,11 +49,10 @@ public class HandleWeChatMsgService {
|
|||
textMessage.setEnable_duplicate_check(apiSettingService.getApiSetting().getEnableDuplicateCheck());
|
||||
textMessage.setDuplicate_check_interval(apiSettingService.getApiSetting().getDuplicateCheckInterval());
|
||||
TextMessage.Text text = new TextMessage.Text();
|
||||
text.setContent("你有一条微信通知\n"+
|
||||
text.setContent("你收到一条微信通知\n 接受时间: " +weChatMsg.getCurrentTime() +
|
||||
"\nsender: " + weChatMsg.getSender() +
|
||||
"\ntitle: "+ weChatMsg.getTitle() +
|
||||
"接受时间: " +weChatMsg.getCurrentTime() +
|
||||
"\n内容: \n\n"+ weChatMsg.getMessage());
|
||||
"\n内容: \n"+ weChatMsg.getMessage());
|
||||
textMessage.setText(text);
|
||||
logger.info("TextMessage: {}", textMessage);
|
||||
return textMessage;
|
||||
|
|
|
|||
|
|
@ -48,5 +48,6 @@ public class QyWeChatAppInfoMapperTest {
|
|||
QyWeChatAppInfo qyWeChatAppInfo = qyWeChatAppInfoMapper.selectById(1);
|
||||
PhoneNumberValidation phoneNumberValidation = new PhoneNumberValidation();
|
||||
phoneNumberValidation.isValidPhoneNumber(qyWeChatAppInfo.getPhoneNumber());
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@ class WeChatMsgTest {
|
|||
weChatMsg.setTitle("Example Title");
|
||||
weChatMsg.setSender("Example Sender");
|
||||
weChatMsg.setMessage("Example Message");
|
||||
weChatMsg.setCurrentTime("2023-12-12 18:43:04");
|
||||
weChatMsg.setCurrentTime("dqdd");
|
||||
|
||||
assertFalse(weChatMsg.isInvalid(), "WeChatMsg should be valid when all fields are valid.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue