0.1.1:修复了remark一直显示一条信息的bug
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -10,7 +10,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<groupId>com.bamanker</groupId>
|
<groupId>com.bamanker</groupId>
|
||||||
<artifactId>dailyLove</artifactId>
|
<artifactId>dailyLove</artifactId>
|
||||||
<version>0.1.0</version>
|
<version>0.1.1</version>
|
||||||
<name>dailyLove</name>
|
<name>dailyLove</name>
|
||||||
<description>dailyLove</description>
|
<description>dailyLove</description>
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ public class PushDailyController {
|
|||||||
@Resource
|
@Resource
|
||||||
WechatRequestClient wechatRequestClient;
|
WechatRequestClient wechatRequestClient;
|
||||||
|
|
||||||
String remark = "❤";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 推送晚安
|
* 推送晚安
|
||||||
*
|
*
|
||||||
@@ -96,6 +94,8 @@ public class PushDailyController {
|
|||||||
log.debug("cbir_day:{}", catBirthdays);
|
log.debug("cbir_day:{}", catBirthdays);
|
||||||
resultVo.setAttribute("cbir_day", new DataItem(catBirthdays - 1 + "", DailyLoveConfigure.Color_cbir));
|
resultVo.setAttribute("cbir_day", new DataItem(catBirthdays - 1 + "", DailyLoveConfigure.Color_cbir));
|
||||||
|
|
||||||
|
String remark = "❤";
|
||||||
|
|
||||||
if (DataUtils.getBirthdays(DailyLoveConfigure.Love_Day) == 1) {
|
if (DataUtils.getBirthdays(DailyLoveConfigure.Love_Day) == 1) {
|
||||||
remark = "明天是恋爱周年纪念日!永远爱你~mua";
|
remark = "明天是恋爱周年纪念日!永远爱你~mua";
|
||||||
} else if ((DataUtils.getLoveDays(DailyLoveConfigure.Love_Day)) % 100 == 1) {
|
} else if ((DataUtils.getLoveDays(DailyLoveConfigure.Love_Day)) % 100 == 1) {
|
||||||
@@ -195,6 +195,8 @@ public class PushDailyController {
|
|||||||
log.debug("cbir_day:{}", catBirthdays);
|
log.debug("cbir_day:{}", catBirthdays);
|
||||||
resultVo.setAttribute("cbir_day", new DataItem(catBirthdays + "", DailyLoveConfigure.Color_cbir));
|
resultVo.setAttribute("cbir_day", new DataItem(catBirthdays + "", DailyLoveConfigure.Color_cbir));
|
||||||
|
|
||||||
|
String remark = "❤";
|
||||||
|
|
||||||
if (DataUtils.getBirthdays(DailyLoveConfigure.Love_Day) == 0) {
|
if (DataUtils.getBirthdays(DailyLoveConfigure.Love_Day) == 0) {
|
||||||
remark = "今天是恋爱周年纪念日!永远爱你~mua";
|
remark = "今天是恋爱周年纪念日!永远爱你~mua";
|
||||||
} else if ((DataUtils.getLoveDays(DailyLoveConfigure.Love_Day)) % 100 == 0) {
|
} else if ((DataUtils.getLoveDays(DailyLoveConfigure.Love_Day)) % 100 == 0) {
|
||||||
|
|||||||
@@ -28,6 +28,11 @@ class DailyLoveApplicationTests {
|
|||||||
|
|
||||||
String remark = "❤";
|
String remark = "❤";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void test4(){
|
||||||
|
log.info("mark: {}",205%100);
|
||||||
|
|
||||||
|
}
|
||||||
@Test
|
@Test
|
||||||
void test3() {
|
void test3() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user