Merge branch 'main' of http://gitea.dd3skj.com/c-hongqw1/zhgh_cpu
This commit is contained in:
@@ -89,7 +89,7 @@ public class MsgApi {
|
|||||||
*/
|
*/
|
||||||
public void sendWxMsg(String title, String url, String msgtype, String description, List<String> loginNames, String contentUrl) {
|
public void sendWxMsg(String title, String url, String msgtype, String description, List<String> loginNames, String contentUrl) {
|
||||||
|
|
||||||
if ("否".equals(Globals.MyConfig.getString("SengMsg"))) {
|
if ("false".equals(Strings.trim(Globals.MyConfig.getString("SengMsg")))) {
|
||||||
log.info("发送失败,消息暂未开启!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
log.info("发送失败,消息暂未开启!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -175,6 +175,16 @@ public class MsgApi {
|
|||||||
public void sendMsg(String content, List<String> toLoginNameList) {
|
public void sendMsg(String content, List<String> toLoginNameList) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
if ("false".equals(Strings.trim(Globals.MyConfig.getString("SengMsg")))) {
|
||||||
|
log.info("发送失败,消息暂未开启!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (Globals.isEnv(Env.dev)) {
|
||||||
|
log.info("发送失败,本地环境禁止发送!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
List<NutMap> mapList = new ArrayList<>();
|
List<NutMap> mapList = new ArrayList<>();
|
||||||
toLoginNameList.forEach(v -> {
|
toLoginNameList.forEach(v -> {
|
||||||
NutMap nutMap = new NutMap();
|
NutMap nutMap = new NutMap();
|
||||||
|
|||||||
Reference in New Issue
Block a user