Skip to content

Commit

Permalink
Update PushPlusApi.java
Browse files Browse the repository at this point in the history
1
  • Loading branch information
LeiDuang authored Feb 12, 2024
1 parent e69dfaf commit f1efd49
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,28 @@ public static void sendNotice(IUser iUser, ILog operLog) {

}

public static void sendNotice(IUser iUser, ILog operLog , String msghead ) {
String token = iUser.getPushPlusToken();
if (StringUtils.isEmpty(token)) {
return;
}
String title, content;
if (operLog.getStatus() == 0) {
//预约成功
title = iUser.getRemark() + "-" + msghead + "成功";
content = iUser.getMobile() + System.lineSeparator() + operLog.getLogContent();
AsyncManager.me().execute(sendNotice(token, title, content, "txt"));
} else {
//预约失败
title = iUser.getRemark() + "-" + msghead + "失败";
content = iUser.getMobile() + System.lineSeparator() + operLog.getLogContent();
AsyncManager.me().execute(sendNotice(token, title, content, "txt"));
}


}


/**
* push推送
*
Expand Down

0 comments on commit f1efd49

Please sign in to comment.