yh
This commit is contained in:
@@ -171,7 +171,7 @@ public class UmengConfig {
|
|||||||
broadcast.setBadge(0);
|
broadcast.setBadge(0);
|
||||||
broadcast.setSound( "default");
|
broadcast.setSound( "default");
|
||||||
// TODO set 'production_mode' to 'true' if your app is under production mode
|
// TODO set 'production_mode' to 'true' if your app is under production mode
|
||||||
broadcast.setTestMode();
|
broadcast.setProductionMode();
|
||||||
// Set customized fields
|
// Set customized fields
|
||||||
broadcast.setCustomizedField(pushMsgInfo.getTitle(), pushMsgInfo.getText());
|
broadcast.setCustomizedField(pushMsgInfo.getTitle(), pushMsgInfo.getText());
|
||||||
client.send(broadcast);
|
client.send(broadcast);
|
||||||
@@ -187,7 +187,7 @@ public class UmengConfig {
|
|||||||
columnOn.setBadge(0);
|
columnOn.setBadge(0);
|
||||||
columnOn.setSound("default");
|
columnOn.setSound("default");
|
||||||
// 点击"通知"的后续行为,默认为打开app。
|
// 点击"通知"的后续行为,默认为打开app。
|
||||||
columnOn.setTestMode();
|
columnOn.setProductionMode();
|
||||||
columnOn.setCustomizedField(pushMsgInfo.getTitle(), pushMsgInfo.getText());
|
columnOn.setCustomizedField(pushMsgInfo.getTitle(), pushMsgInfo.getText());
|
||||||
client.send(columnOn);
|
client.send(columnOn);
|
||||||
}
|
}
|
||||||
@@ -263,12 +263,12 @@ public class UmengConfig {
|
|||||||
//UmResp ss = JSONUtil.toBean(sss, UmResp.class);
|
//UmResp ss = JSONUtil.toBean(sss, UmResp.class);
|
||||||
//System.out.println(ss);
|
//System.out.println(ss);
|
||||||
// UmengConfig umengConfig = new UmengConfig();
|
// UmengConfig umengConfig = new UmengConfig();
|
||||||
// PushMsgInfo pushMsgInfo = new PushMsgInfo();
|
PushMsgInfo pushMsgInfo = new PushMsgInfo();
|
||||||
// pushMsgInfo.setText("test");
|
pushMsgInfo.setText("test");
|
||||||
// pushMsgInfo.setTitle("title");
|
pushMsgInfo.setTitle("title");
|
||||||
// pushMsgInfo.setAlias("13943965645");
|
pushMsgInfo.setAlias("13943965645");
|
||||||
// //umengConfig.sendAndroidCustomizedcast(pushMsgInfo);
|
// //umengConfig.sendAndroidCustomizedcast(pushMsgInfo);
|
||||||
// umengConfig.sendIOSCustomizedcast(pushMsgInfo);
|
umengConfig.sendIOSCustomizedcast(pushMsgInfo);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public class MusicInfoServiceImpl implements IMusicInfoService
|
|||||||
musicInfo.setMusicId(IdUtil.getSnowflakeNextId());
|
musicInfo.setMusicId(IdUtil.getSnowflakeNextId());
|
||||||
musicInfo.setMusicType(MusicType.ORDINARY.getMusicType());
|
musicInfo.setMusicType(MusicType.ORDINARY.getMusicType());
|
||||||
musicInfo.setCreator(SecurityUtils.getUsername());
|
musicInfo.setCreator(SecurityUtils.getUsername());
|
||||||
musicInfo.setShelf(2L);
|
musicInfo.setShelf(musicInfo.getShelf());
|
||||||
return musicInfoMapper.insertMusicInfo(musicInfo);
|
return musicInfoMapper.insertMusicInfo(musicInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||||
<if test="label != null and label != ''"> and label = #{label}</if>
|
<if test="label != null and label != ''"> and label = #{label}</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMusicInfoById" parameterType="String" resultMap="MusicInfoResult">
|
<select id="selectMusicInfoById" parameterType="String" resultMap="MusicInfoResult">
|
||||||
|
|||||||
Reference in New Issue
Block a user