提交 f17e8e6d 编写于 作者: zhouweidong's avatar zhouweidong

消息集成

上级 6413e9db
...@@ -24,6 +24,7 @@ package ${pub.getPKGCodeName()}.util.job; ...@@ -24,6 +24,7 @@ package ${pub.getPKGCodeName()}.util.job;
import ${pub.getPKGCodeName()}.util.client.IBZUAAFeignClient; import ${pub.getPKGCodeName()}.util.client.IBZUAAFeignClient;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONArray;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -117,13 +118,13 @@ public class PermissionSyncJob implements ApplicationRunner { ...@@ -117,13 +118,13 @@ public class PermissionSyncJob implements ApplicationRunner {
template.put("template",JSONArray.parseArray(strMsgTemplate)); template.put("template",JSONArray.parseArray(strMsgTemplate));
//数值代码表:email(2)sms(4)wechat(32)dingtalk(64) //数值代码表:email(2)sms(4)wechat(32)dingtalk(64)
template.put("templtypes", 102); template.put("templtypes", 102);
// system.put("md5check",DigestUtils.md5DigestAsHex(permissionResult.getBytes())); // template.put("md5check",DigestUtils.md5DigestAsHex(permissionResult.getBytes()));
if(noticeFeignClient.createMsgTemplate(template)){ if(noticeFeignClient.createMsgTemplate(template)){
log.info("推送消息模板成功"); log.info("推送消息模板成功");
}else{ }else{
log.error("推送消息模板失败"); log.error("推送消息模板失败");
} }
} catch (IOException e) { } catch (Exception e) {
log.error("推送消息模板失败"); log.error("推送消息模板失败");
} }
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册