From e3fe1e12c71c5c2c6be9d7240b4d14c9685695c4 Mon Sep 17 00:00:00 2001 From: 3y Date: Thu, 17 Feb 2022 22:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=9B=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- .../main/java/com/java3y/austin/cron/utils/ReadFileUtils.java | 1 + .../austin/web/service/impl/MessageTemplateServiceImpl.java | 2 +- sql/austin.sql | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 75ec42e..eaf1828 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ austin项目**核心流程**:`austin-api`接收到发送消息请求,直接 ```shell -curl -XPOST "127.0.0.1:8080/send" -H 'Content-Type: application/json' -d '{"code":"send","messageParam":{"receiver":"13788888888","variables":{"title":"yyyyyy","contentValue":"6666164180"}},"messageTemplateId":1}' +curl -XPOST "127.0.0.1:8080/send" -H 'Content-Type: application/json' -d '"{"code":"send","messageParam":{"extra":null,"receiver":"13719333899","variables":{"content":"2222","url":"1111"}},"messageTemplateId":1}"' ``` diff --git a/austin-cron/src/main/java/com/java3y/austin/cron/utils/ReadFileUtils.java b/austin-cron/src/main/java/com/java3y/austin/cron/utils/ReadFileUtils.java index a1ce671..4aae38a 100644 --- a/austin-cron/src/main/java/com/java3y/austin/cron/utils/ReadFileUtils.java +++ b/austin-cron/src/main/java/com/java3y/austin/cron/utils/ReadFileUtils.java @@ -71,6 +71,7 @@ public class ReadFileUtils { * @param path * @return */ + @Deprecated public static List getCsvRowList(String path) { List result = new ArrayList<>(); try { diff --git a/austin-web/src/main/java/com/java3y/austin/web/service/impl/MessageTemplateServiceImpl.java b/austin-web/src/main/java/com/java3y/austin/web/service/impl/MessageTemplateServiceImpl.java index 5a55cc7..88febcd 100644 --- a/austin-web/src/main/java/com/java3y/austin/web/service/impl/MessageTemplateServiceImpl.java +++ b/austin-web/src/main/java/com/java3y/austin/web/service/impl/MessageTemplateServiceImpl.java @@ -91,7 +91,7 @@ public class MessageTemplateServiceImpl implements MessageTemplateService { @Override public BasicResultVO startCronTask(Long id) { - // 1.修改模板状态 + // 1.获取消息模板的信息 MessageTemplate messageTemplate = messageTemplateDao.findById(id).get(); // 2.动态创建或更新定时任务 diff --git a/sql/austin.sql b/sql/austin.sql index 048abc4..8dac7fc 100644 --- a/sql/austin.sql +++ b/sql/austin.sql @@ -60,7 +60,7 @@ CREATE TABLE `sms_record` -- 短信测试 -INSERT INTO austin.message_template (id, name, audit_status, flow_id, msg_status, cron_task_id, cron_crowd_path, expect_push_time, id_type, send_channel, template_type, msg_type, msg_content, send_account, creator, updator, auditor, team, proposer, is_deleted, created, updated) VALUES (1, '短信测试', 10, '', 10, null, '', '', 30, 30, 20, 20, '{"content":"6666","url":"","title":""}', 10, 'Java3y', 'Java3y', '3y', '公众号Java3y', '3y', 0, 1644387139, 1644387139); +INSERT INTO austin.message_template (id, name, audit_status, flow_id, msg_status, cron_task_id, cron_crowd_path, expect_push_time, id_type, send_channel, template_type, msg_type, msg_content, send_account, creator, updator, auditor, team, proposer, is_deleted, created, updated) VALUES (1, '短信测试', 10, '', 10, null, '', '', 30, 30, 20, 20, '{"content":"{$content}","url":"{$url}","title":""}', 10, 'Java3y', 'Java3y', '3y', '公众号Java3y', '3y', 0, 1644387139, 1644387139); -- 邮件测试 INSERT INTO austin.message_template (id, name, audit_status, flow_id, msg_status, cron_task_id, cron_crowd_path, expect_push_time, id_type, send_channel, template_type, msg_type, msg_content, send_account, creator, updator, auditor, team, proposer, is_deleted, created, updated) VALUES (2, '测试邮件', 10, '', 10, null, '', '', 50, 40, 20, 10, '{"content":"4344444444","url":"","title":"6666666"}', 10, 'Java3y', 'Java3y', '3y', '公众号Java3y', '3y', 0, 1644387638, 1644387638); \ No newline at end of file