yh
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -263,12 +263,12 @@ public class UmengConfig {
|
||||
//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");
|
||||
PushMsgInfo pushMsgInfo = new PushMsgInfo();
|
||||
pushMsgInfo.setText("test");
|
||||
pushMsgInfo.setTitle("title");
|
||||
pushMsgInfo.setAlias("13943965645");
|
||||
// //umengConfig.sendAndroidCustomizedcast(pushMsgInfo);
|
||||
// umengConfig.sendIOSCustomizedcast(pushMsgInfo);
|
||||
umengConfig.sendIOSCustomizedcast(pushMsgInfo);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user