This commit is contained in:
zhujunshuai 2023-04-04 18:21:04 +08:00
parent dedd4e60e2
commit a0a3da7a42
3 changed files with 12 additions and 9 deletions

View File

@ -115,7 +115,10 @@ public class MobV2PushUtil {
pushDTO.setPushMessage(pushMessage); pushDTO.setPushMessage(pushMessage);
//此格式的透传消息由 unipush 做了特殊处理会自动展示通知栏开发者也可自定义其它格式在客户端自己处理 //此格式的透传消息由 unipush 做了特殊处理会自动展示通知栏开发者也可自定义其它格式在客户端自己处理
//pushMessage.setTransmission(" {title:\"标题\",content:\"内容\",payload:\"快银到账1万元\"}"); //pushMessage.setTransmission(" {title:\"标题\",content:\"内容\",payload:\"快银到账1万元\"}");
pushMessage.setTransmission(" {title:\"" + title + "\",content:\"" + content + "\"," + ext);
//pushMessage.setTransmission("{title:" + title + ", content:" + content + ext);
pushMessage.setTransmission("{title:\"" + title + "\",content:\"" + content + "\"," + ext);
// 设置接收人信息 // 设置接收人信息
Audience audience = new Audience(); Audience audience = new Audience();
@ -131,8 +134,8 @@ public class MobV2PushUtil {
Ups ups = new Ups(); Ups ups = new Ups();
ThirdNotification thirdNotification = new ThirdNotification(); ThirdNotification thirdNotification = new ThirdNotification();
ups.setNotification(thirdNotification); ups.setNotification(thirdNotification);
thirdNotification.setTitle("安卓离线展示的标题"); thirdNotification.setTitle(title);
thirdNotification.setBody("安卓离线展示的内容"); thirdNotification.setBody(content);
thirdNotification.setClickType("intent"); thirdNotification.setClickType("intent");
//注意intent参数必须按下方文档特殊参数说明要求的固定格式传值intent错误会导致客户端无法收到消息 //注意intent参数必须按下方文档特殊参数说明要求的固定格式传值intent错误会导致客户端无法收到消息
thirdNotification.setIntent("intent://io.dcloud.unipush/?#Intent;scheme=unipush;launchFlags=0x4000000;component=io.dcloud.HBuilder/io.dcloud.PandoraEntry;S.UP-OL-SU=true;S.title=测试标题;S.content=测试内容;S.payload=test;end"); thirdNotification.setIntent("intent://io.dcloud.unipush/?#Intent;scheme=unipush;launchFlags=0x4000000;component=io.dcloud.HBuilder/io.dcloud.PandoraEntry;S.UP-OL-SU=true;S.title=测试标题;S.content=测试内容;S.payload=test;end");
@ -141,8 +144,8 @@ public class MobV2PushUtil {
//ios离线apn通道推送的消息体 //ios离线apn通道推送的消息体
Alert alert = new Alert(); Alert alert = new Alert();
alert.setTitle("苹果离线通知栏标题"); alert.setTitle(title);
alert.setBody("苹果离线通知栏内容"); alert.setBody(content);
Aps aps = new Aps(); Aps aps = new Aps();
aps.setContentAvailable(0); aps.setContentAvailable(0);
aps.setSound("default"); aps.setSound("default");

View File

@ -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, "快银到账1万元", "快银到账1万元", "payload:{voice:\"快银到账1万元\",type:\"1\"}}");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();

View File

@ -7,7 +7,7 @@ import cn.pluss.platform.api.Result;
import cn.pluss.platform.api.ResultGenerator; import cn.pluss.platform.api.ResultGenerator;
import cn.pluss.platform.channel.BaseMerchantAuditService; import cn.pluss.platform.channel.BaseMerchantAuditService;
import cn.pluss.platform.channel.MerchantAuditService; import cn.pluss.platform.channel.MerchantAuditService;
import cn.pluss.platform.channel.ys.YSAuditServiceV3; //import cn.pluss.platform.channel.ys.YSAuditServiceV3;
import cn.pluss.platform.common.CommonRemarkService; import cn.pluss.platform.common.CommonRemarkService;
import cn.pluss.platform.common.RiskBlacklistService; import cn.pluss.platform.common.RiskBlacklistService;
import cn.pluss.platform.converter.Converter; import cn.pluss.platform.converter.Converter;
@ -174,7 +174,7 @@ public class UserAppServiceImpl extends ServiceImpl<UserAppMapper, UserApp> impl
@Autowired @Autowired
private UserRoleMapper userRoleMapper; private UserRoleMapper userRoleMapper;
@Autowired @Autowired
private YSAuditServiceV3 ysAuditServiceV3; //private YSAuditServiceV3 ysAuditServiceV3;
@Override @Override
@ -798,7 +798,7 @@ public class UserAppServiceImpl extends ServiceImpl<UserAppMapper, UserApp> impl
case "4": case "4":
// 银盛 // 银盛
//ysAuditServiceV2.merchantAudit(userId, false); //ysAuditServiceV2.merchantAudit(userId, false);
ysAuditServiceV3.merchantAuditV3(userId, false); //ysAuditServiceV3.merchantAuditV3(userId, false);
break; break;
default: default:
MsgException.throwException("未知的进件通道"); MsgException.throwException("未知的进件通道");