Skip to content

Commit 82d71ea

Browse files
committed
修复对应常量名
1 parent f66c0b0 commit 82d71ea

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpUserCumulateGsonAdapter.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030
public class WxMpUserCumulateGsonAdapter implements JsonDeserializer<WxDataCubeUserCumulate> {
3131

32-
private static final FastDateFormat SIMPLE_DATE_FORMAT = FastDateFormat
32+
private static final FastDateFormat DATE_FORMAT = FastDateFormat
3333
.getInstance("yyyy-MM-dd");
3434

3535
@Override
@@ -40,7 +40,7 @@ public WxDataCubeUserCumulate deserialize(JsonElement json, Type typeOfT, JsonDe
4040
try {
4141
String refDate = GsonHelper.getString(summaryJsonObject, "ref_date");
4242
if (refDate != null) {
43-
cumulate.setRefDate(SIMPLE_DATE_FORMAT.parse(refDate));
43+
cumulate.setRefDate(DATE_FORMAT.parse(refDate));
4444
}
4545
cumulate.setCumulateUser(GsonHelper.getInteger(summaryJsonObject, "cumulate_user"));
4646
} catch (ParseException e) {

‎weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpUserSummaryGsonAdapter.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
public class WxMpUserSummaryGsonAdapter implements JsonDeserializer<WxDataCubeUserSummary> {
2929

30-
private static final FastDateFormat SIMPLE_DATE_FORMAT = FastDateFormat
30+
private static final FastDateFormat DATE_FORMAT = FastDateFormat
3131
.getInstance("yyyy-MM-dd");
3232

3333
@Override
@@ -39,7 +39,7 @@ public WxDataCubeUserSummary deserialize(JsonElement json, Type typeOfT, JsonDes
3939
try {
4040
String refDate = GsonHelper.getString(summaryJsonObject, "ref_date");
4141
if (refDate != null) {
42-
summary.setRefDate(SIMPLE_DATE_FORMAT.parse(refDate));
42+
summary.setRefDate(DATE_FORMAT.parse(refDate));
4343
}
4444
summary.setUserSource(GsonHelper.getInteger(summaryJsonObject, "user_source"));
4545
summary.setNewUser(GsonHelper.getInteger(summaryJsonObject, "new_user"));

0 commit comments

Comments
 (0)