| | |
| | | import com.yeshi.buwan.job.AdJob; |
| | | import com.yeshi.buwan.service.imp.DetailSystemConfigService; |
| | | import com.yeshi.buwan.service.inter.system.SystemConfigService; |
| | | import com.yeshi.buwan.util.rank.IqiyiRankUtil; |
| | | import com.yeshi.buwan.vo.ad.BannerVO; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | |
| | | import org.springframework.test.context.web.WebAppConfiguration; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.IOException; |
| | | import java.math.BigDecimal; |
| | | import java.math.BigInteger; |
| | | import java.util.Date; |
| | |
| | | @Test |
| | | public void addSystemConfig() { |
| | | SystemConfig systemConfig = new SystemConfig(); |
| | | systemConfig.setBeizhu(""); |
| | | systemConfig.setKey("iqiyi_update_video_name"); |
| | | systemConfig.setName("爱奇艺特殊更新的视频名称"); |
| | | systemConfig.setValue("《卧底》,没关系,是青春啊!,山海情(原声版),我的时代,你的时代,你好,安怡"); |
| | | systemConfig.setCreateTime(new Date()); |
| | | systemConfig.setId(SystemConfig.createId(systemConfig.getKey())); |
| | | systemConfigDao.save(systemConfig); |
| | | // systemConfig.setBeizhu(""); |
| | | // systemConfig.setKey("iqiyi_update_video_name"); |
| | | // systemConfig.setName("爱奇艺特殊更新的视频名称"); |
| | | // systemConfig.setValue("《卧底》,没关系,是青春啊!,山海情(原声版),我的时代,你的时代,你好,安怡"); |
| | | // systemConfig.setCreateTime(new Date()); |
| | | // systemConfig.setId(SystemConfig.createId(systemConfig.getKey())); |
| | | // systemConfigDao.save(systemConfig); |
| | | // |
| | | // systemConfig = new SystemConfig(); |
| | | // systemConfig.setBeizhu(""); |
| | | // systemConfig.setKey("default_portrait"); |
| | | // systemConfig.setName("默认头像"); |
| | | // systemConfig.setValue("https://buwan-1255749512.cos.ap-guangzhou.myqcloud.com/resource/ic_portrait_default.png"); |
| | | // systemConfig.setCreateTime(new Date()); |
| | | // systemConfig.setId(SystemConfig.createId(systemConfig.getKey())); |
| | | // systemConfigDao.save(systemConfig); |
| | | |
| | | |
| | | systemConfig = new SystemConfig(); |
| | | systemConfig.setBeizhu(""); |
| | | systemConfig.setKey("default_portrait"); |
| | | systemConfig.setName("默认头像"); |
| | | systemConfig.setValue("https://buwan-1255749512.cos.ap-guangzhou.myqcloud.com/resource/ic_portrait_default.png"); |
| | | systemConfig.setKey("thirdUidPrefix"); |
| | | systemConfig.setName("第三方用户ID的前缀"); |
| | | try { |
| | | systemConfig.setValue("buwan-"); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | systemConfig.setCreateTime(new Date()); |
| | | systemConfig.setId(SystemConfig.createId(systemConfig.getKey())); |
| | | systemConfigDao.save(systemConfig); |