|
|
@@ -180,7 +180,7 @@ public class DianZhongServiceImpl implements IDianZhongService {
|
|
|
String promotionId = jsonObject.getString("promotionId");
|
|
|
adId = StringUtils.isNotBlank(promotionId) ? promotionId : adId;
|
|
|
Long dyeTime = jsonObject.getLong("dyeTime");
|
|
|
- String activationTime = DateUtils.formatDate(dyeTime * 1000, "yyyy-MM-dd HH:mm:ss");
|
|
|
+ String activationTime = dyeTime != null ? DateUtils.formatDate(dyeTime * 1000, "yyyy-MM-dd HH:mm:ss") : null;
|
|
|
String fromMedia = jsonObject.getString("from");
|
|
|
userJson.put("app_id", appIdByChannelId);
|
|
|
userJson.put("uid", jsonObject.getString("userId"));
|
|
|
@@ -230,8 +230,8 @@ public class DianZhongServiceImpl implements IDianZhongService {
|
|
|
String promotionId = jsonObject.getString("promotionId");
|
|
|
adId = StringUtils.isNotBlank(promotionId) ? promotionId : adId;
|
|
|
Long dyeTime = jsonObject.getLong("dyeTime");
|
|
|
- String activationTime = DateUtils.formatDate(dyeTime * 1000, "yyyy-MM-dd HH:mm:ss");
|
|
|
- String activationDate = DateUtils.formatDate(dyeTime * 1000, "yyyyMMdd");
|
|
|
+ String activationTime = dyeTime != null ? DateUtils.formatDate(dyeTime * 1000, "yyyy-MM-dd HH:mm:ss") : null;
|
|
|
+ String activationDate = dyeTime != null ? DateUtils.formatDate(dyeTime * 1000, "yyyyMMdd") : null;
|
|
|
Long ctime = jsonObject.getLong("ctime");
|
|
|
String registerTime = DateUtils.formatDate(ctime * 1000, "yyyy-MM-dd HH:mm:ss");
|
|
|
String registerDate = DateUtils.formatDate(ctime * 1000, "yyyyMMdd");
|
|
|
@@ -287,6 +287,9 @@ public class DianZhongServiceImpl implements IDianZhongService {
|
|
|
String promotionId = jsonObject.getString("promotionId");
|
|
|
adId = StringUtils.isNotBlank(promotionId) ? promotionId : adId;
|
|
|
Long dyeTime = jsonObject.getLong("dyeTime");
|
|
|
+ if (dyeTime == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
String statDate = DateUtils.formatDate(dyeTime * 1000, "yyyyMMdd");
|
|
|
String activationTime = DateUtils.formatDate(dyeTime * 1000, "yyyy-MM-dd HH:mm:ss");
|
|
|
Long ctime = jsonObject.getLong("ctime");
|
|
|
@@ -346,8 +349,8 @@ public class DianZhongServiceImpl implements IDianZhongService {
|
|
|
String promotionId = jsonObject.getString("promotionId");
|
|
|
adId = StringUtils.isNotBlank(promotionId) ? promotionId : adId;
|
|
|
Long dyeTime = jsonObject.getLong("dyeTime");
|
|
|
- String activationTime = DateUtils.formatDate(dyeTime * 1000, "yyyy-MM-dd HH:mm:ss");
|
|
|
- String activationDate = DateUtils.formatDate(dyeTime * 1000, "yyyyMMdd");
|
|
|
+ String activationTime = dyeTime != null ? DateUtils.formatDate(dyeTime * 1000, "yyyy-MM-dd HH:mm:ss") : null;
|
|
|
+ String activationDate = dyeTime != null ? DateUtils.formatDate(dyeTime * 1000, "yyyyMMdd") : null;
|
|
|
String registerTime = DateUtils.formatDate(ctime * 1000, "yyyy-MM-dd HH:mm:ss");
|
|
|
String registerDate = DateUtils.formatDate(ctime * 1000, "yyyyMMdd");
|
|
|
String fromMedia = jsonObject.getString("from");
|
|
|
@@ -407,8 +410,8 @@ public class DianZhongServiceImpl implements IDianZhongService {
|
|
|
String promotionId = jsonObject.getString("promotionId");
|
|
|
adId = StringUtils.isNotBlank(promotionId) ? promotionId : adId;
|
|
|
Long dyeTime = jsonObject.getLong("dyeTime");
|
|
|
- String activationTime = DateUtils.formatDate(dyeTime * 1000, "yyyy-MM-dd HH:mm:ss");
|
|
|
- String activationDate = DateUtils.formatDate(dyeTime * 1000, "yyyyMMdd");
|
|
|
+ String activationTime = dyeTime != null ? DateUtils.formatDate(dyeTime * 1000, "yyyy-MM-dd HH:mm:ss") : null;
|
|
|
+ String activationDate = dyeTime != null ? DateUtils.formatDate(dyeTime * 1000, "yyyyMMdd") : null;
|
|
|
Long registerT = jsonObject.getLong("registerDate");
|
|
|
String registerTime = DateUtils.formatDate(registerT * 1000, "yyyy-MM-dd HH:mm:ss");
|
|
|
String registerDate = DateUtils.formatDate(registerT * 1000, "yyyyMMdd");
|