|
|
@@ -112,7 +112,11 @@ public class IntegralShareService extends BaseService<IntegralShare> {
|
|
|
//积分策略可每日分享次数 是否等于 当日已经分享的次数
|
|
|
if (integralShareResponses!=null && integralShareResponses.size() > 0) {
|
|
|
//当日已进行过邀请
|
|
|
- return ResponseResultUtil.success(integralShareResponses.get(0));
|
|
|
+ IntegralShareResponse response = integralShareResponses.get(0);
|
|
|
+ LocalDateTime now = LocalDateTime.now();
|
|
|
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
+ response.setNowTime(now.format(formatter));
|
|
|
+ return ResponseResultUtil.success(response);
|
|
|
}
|
|
|
//endregion
|
|
|
}
|
|
|
@@ -180,8 +184,10 @@ public class IntegralShareService extends BaseService<IntegralShare> {
|
|
|
//新建
|
|
|
integralShareMapper.insert(integralShare);
|
|
|
//endregion
|
|
|
-
|
|
|
- return ResponseResultUtil.success();
|
|
|
+ LocalDateTime now = LocalDateTime.now();
|
|
|
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
+ integralShare.setNowTime(now.format(formatter));
|
|
|
+ return ResponseResultUtil.success(integralShare);
|
|
|
}
|
|
|
|
|
|
/**
|