修改推送
This commit is contained in:
parent
1f5854b5ad
commit
2a06b2e866
|
|
@ -162,6 +162,8 @@ public class MobV2PushUtil {
|
||||||
|
|
||||||
ApiResult<Map<String, Map<String, String>>> apiResult = pushApi.pushBatchByAlias(pushBatchDTO);
|
ApiResult<Map<String, Map<String, String>>> apiResult = pushApi.pushBatchByAlias(pushBatchDTO);
|
||||||
|
|
||||||
|
log.info("[uni推送]PushResult result is {}", apiResult.getData());
|
||||||
|
|
||||||
if (apiResult.isSuccess()) {
|
if (apiResult.isSuccess()) {
|
||||||
// success
|
// success
|
||||||
System.out.println(apiResult.getData());
|
System.out.println(apiResult.getData());
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ parameter:
|
||||||
APPID: wx212769170d2c6b2a
|
APPID: wx212769170d2c6b2a
|
||||||
# wxfffc7bff64c7a11e
|
# wxfffc7bff64c7a11e
|
||||||
#小程序付款APPID
|
#小程序付款APPID
|
||||||
APPLETS_APPID: wxfffc7bff64c7a11e
|
APPLETS_APPID: wxc2bb94c0ddda1032
|
||||||
APPSECRET: 4e00bbf3fc75a1ff68ce866fd13f2bcc
|
APPSECRET: 4e00bbf3fc75a1ff68ce866fd13f2bcc
|
||||||
# b84ee0efaa0d9a649746ac65525f8e10
|
# b84ee0efaa0d9a649746ac65525f8e10
|
||||||
KEY: 微信原生加密用的KEY
|
KEY: 微信原生加密用的KEY
|
||||||
|
|
|
||||||
|
|
@ -31,3 +31,6 @@ server:
|
||||||
port: 8083
|
port: 8083
|
||||||
servlet:
|
servlet:
|
||||||
context-path: /manage
|
context-path: /manage
|
||||||
|
compression:
|
||||||
|
enabled: true
|
||||||
|
mime-types: application/json
|
||||||
|
|
|
||||||
|
|
@ -1964,7 +1964,7 @@ public class MerchantOrderServiceImpl extends ServiceImpl<MerchantOrderMapper, M
|
||||||
try {
|
try {
|
||||||
Notice notice = new Notice(2,98,userApp);
|
Notice notice = new Notice(2,98,userApp);
|
||||||
notice.setUniqueKey(order.getOrderNumber()+userApp.getUserId());
|
notice.setUniqueKey(order.getOrderNumber()+userApp.getUserId());
|
||||||
String content = "收银呗到账" + order.getConsumeFee() + "元";
|
String content = "快银到账" + order.getConsumeFee() + "元";
|
||||||
notice.setConrtent(content);
|
notice.setConrtent(content);
|
||||||
noticeService.saveOrUpdate(notice);
|
noticeService.saveOrUpdate(notice);
|
||||||
// 会员充值播报
|
// 会员充值播报
|
||||||
|
|
@ -1976,7 +1976,7 @@ public class MerchantOrderServiceImpl extends ServiceImpl<MerchantOrderMapper, M
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if(UserVoice.ENABLE.equals(voice.getPaySuccess())){
|
if(UserVoice.ENABLE.equals(voice.getPaySuccess())){
|
||||||
generalPushUtil.sendAllPlatByAlias(alias, "收银呗到账通知", content, extrasparam);
|
generalPushUtil.sendAllPlatByAlias(alias, content, content, extrasparam);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//发送模板消息
|
//发送模板消息
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ public class GeneralPushUtil implements IPush {
|
||||||
mobPushUtil.sendIOSByAlias(alias, notificationTitle, msgContent, extrasParam);
|
mobPushUtil.sendIOSByAlias(alias, notificationTitle, msgContent, extrasParam);
|
||||||
userPushService.push(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) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue