修改推送

This commit is contained in:
zhujunshuai 2023-04-07 17:04:16 +08:00
parent 1f5854b5ad
commit 2a06b2e866
5 changed files with 9 additions and 4 deletions

View File

@ -162,6 +162,8 @@ public class MobV2PushUtil {
ApiResult<Map<String, Map<String, String>>> apiResult = pushApi.pushBatchByAlias(pushBatchDTO);
log.info("[uni推送]PushResult result is {}", apiResult.getData());
if (apiResult.isSuccess()) {
// success
System.out.println(apiResult.getData());

View File

@ -100,7 +100,7 @@ parameter:
APPID: wx212769170d2c6b2a
# wxfffc7bff64c7a11e
#小程序付款APPID
APPLETS_APPID: wxfffc7bff64c7a11e
APPLETS_APPID: wxc2bb94c0ddda1032
APPSECRET: 4e00bbf3fc75a1ff68ce866fd13f2bcc
# b84ee0efaa0d9a649746ac65525f8e10
KEY: 微信原生加密用的KEY

View File

@ -31,3 +31,6 @@ server:
port: 8083
servlet:
context-path: /manage
compression:
enabled: true
mime-types: application/json

View File

@ -1964,7 +1964,7 @@ public class MerchantOrderServiceImpl extends ServiceImpl<MerchantOrderMapper, M
try {
Notice notice = new Notice(2,98,userApp);
notice.setUniqueKey(order.getOrderNumber()+userApp.getUserId());
String content = "收银呗到账" + order.getConsumeFee() + "";
String content = "快银到账" + order.getConsumeFee() + "";
notice.setConrtent(content);
noticeService.saveOrUpdate(notice);
// 会员充值播报
@ -1976,7 +1976,7 @@ public class MerchantOrderServiceImpl extends ServiceImpl<MerchantOrderMapper, M
}
}else{
if(UserVoice.ENABLE.equals(voice.getPaySuccess())){
generalPushUtil.sendAllPlatByAlias(alias, "收银呗到账通知", content, extrasparam);
generalPushUtil.sendAllPlatByAlias(alias, content, content, extrasparam);
}
}
//发送模板消息

View File

@ -68,7 +68,7 @@ public class GeneralPushUtil implements IPush {
mobPushUtil.sendIOSByAlias(alias, notificationTitle, msgContent, extrasParam);
userPushService.push(alias, notificationTitle, msgContent, extrasParam);*/
MobV2PushUtil.sendSingleByAlias(alias, "快银到账1万元", "快银到账1万元", "payload:{voice:\"快银到账1万元\",type:\"1\"}}");
MobV2PushUtil.sendSingleByAlias(alias, notificationTitle, msgContent, "payload:{voice:\"" + msgContent + "\",type:\"1\"}}");
} catch (Exception e) {
e.printStackTrace();