This commit is contained in:
menxipeng
2025-11-05 22:49:22 +08:00
parent c5f94e2d2c
commit 5ac6929d2e
3 changed files with 12 additions and 11 deletions

View File

@@ -171,7 +171,7 @@ public class UmengConfig {
broadcast.setBadge(0);
broadcast.setSound( "default");
// TODO set 'production_mode' to 'true' if your app is under production mode
broadcast.setTestMode();
broadcast.setProductionMode();
// Set customized fields
broadcast.setCustomizedField(pushMsgInfo.getTitle(), pushMsgInfo.getText());
client.send(broadcast);
@@ -187,7 +187,7 @@ public class UmengConfig {
columnOn.setBadge(0);
columnOn.setSound("default");
// 点击"通知"的后续行为默认为打开app。
columnOn.setTestMode();
columnOn.setProductionMode();
columnOn.setCustomizedField(pushMsgInfo.getTitle(), pushMsgInfo.getText());
client.send(columnOn);
}
@@ -260,15 +260,15 @@ public class UmengConfig {
// sss = "{\"success\":true,\"data\":{\"mobile\":\"18518753918\",\"score\":null,\"activeScore\":null,\"aesEncryptKey\":null},\"code\":2001,\"message\":\"gain mobile's result success\",\"requestId\":\"0E87E249-42A0-42C0-94D3-7424D45E571E\"}\n";
//
// UmResp ss = JSONUtil.toBean(sss, UmResp.class);
// System.out.println(ss);
//UmengConfig umengConfig = new UmengConfig();
// PushMsgInfo pushMsgInfo = new PushMsgInfo();
// pushMsgInfo.setText("test");
// pushMsgInfo.setTitle("title");
// pushMsgInfo.setAlias("13943965645");
//UmResp ss = JSONUtil.toBean(sss, UmResp.class);
//System.out.println(ss);
// UmengConfig umengConfig = new UmengConfig();
PushMsgInfo pushMsgInfo = new PushMsgInfo();
pushMsgInfo.setText("test");
pushMsgInfo.setTitle("title");
pushMsgInfo.setAlias("13943965645");
// //umengConfig.sendAndroidCustomizedcast(pushMsgInfo);
// umengConfig.sendIOSCustomizedcast(pushMsgInfo);
umengConfig.sendIOSCustomizedcast(pushMsgInfo);
}

View File

@@ -78,7 +78,7 @@ public class MusicInfoServiceImpl implements IMusicInfoService
musicInfo.setMusicId(IdUtil.getSnowflakeNextId());
musicInfo.setMusicType(MusicType.ORDINARY.getMusicType());
musicInfo.setCreator(SecurityUtils.getUsername());
musicInfo.setShelf(2L);
musicInfo.setShelf(musicInfo.getShelf());
return musicInfoMapper.insertMusicInfo(musicInfo);
}

View File

@@ -44,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isDel != null "> and is_del = #{isDel}</if>
<if test="label != null and label != ''"> and label = #{label}</if>
</where>
order by create_time desc
</select>
<select id="selectMusicInfoById" parameterType="String" resultMap="MusicInfoResult">