Przeglądaj źródła

修改:
极光推送,安卓端增加发送内容。

hgw 3 lat temu
rodzic
commit
651fe04c7f

+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/TempLittleArtistTrainingCampServiceImpl.java

@@ -103,7 +103,7 @@ public class TempLittleArtistTrainingCampServiceImpl extends ServiceImpl<TempLit
         int count = tempLittleArtistTrainingCampUserRelationService.count(Wrappers.<TempLittleArtistTrainingCampUserRelation>lambdaQuery()
                 .eq(TempLittleArtistTrainingCampUserRelation::getActivityId, entity.getId()));
         if (count > 0) {
-            throw new BizException("训练营已有学生报名,无法删除");
+            throw new BizException("训练营已有学生报名,无法修改");
         }
         entity.setName(dto.getName());
         entity.setApplyStartDate(dto.getApplyStartDate());

+ 4 - 1
mec-thirdparty/src/main/java/com/ym/mec/thirdparty/message/provider/JiguangPushPlugin.java

@@ -92,7 +92,10 @@ public class JiguangPushPlugin implements MessageSenderPlugin, InitializingBean
 		android_extras.put("url", url);
 		android_extras.put("memo", url);
 		android.put("extras", android_extras);
-		android.put("intent", "intent:#Intent;action=android.intent.action.MAIN;end");
+        //2022年5月27日 增加以下参数,是因为安卓无法跳转到APP中
+        JSONObject intentParam = new JSONObject();
+        intentParam.put(url,"intent:#Intent;action=android.intent.action.MAIN;end");
+        android.put("intent", intentParam);
 
 		JSONObject ios = new JSONObject();// ios通知内容
 		ios.put("alert", alert);