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