|
@@ -85,6 +85,9 @@ public class SysPublicParamServiceImpl extends ServiceImpl<SysPublicParamMapper,
|
|
if (params.length>2){
|
|
if (params.length>2){
|
|
second = Integer.valueOf(params[2]);
|
|
second = Integer.valueOf(params[2]);
|
|
}
|
|
}
|
|
|
|
+ }else{
|
|
|
|
+ startParam = new SysPublicParam();
|
|
|
|
+ startParam.setPublicValue(hour+":0"+min+":0"+second);
|
|
}
|
|
}
|
|
LocalDateTime start = now.withHour(hour).withMinute(min).withSecond(second).withNano(0);
|
|
LocalDateTime start = now.withHour(hour).withMinute(min).withSecond(second).withNano(0);
|
|
if (now.isBefore(end)&&now.isAfter(start)){
|
|
if (now.isBefore(end)&&now.isAfter(start)){
|
|
@@ -95,7 +98,7 @@ public class SysPublicParamServiceImpl extends ServiceImpl<SysPublicParamMapper,
|
|
}
|
|
}
|
|
return Results.success(publicParam.getPublicValue());
|
|
return Results.success(publicParam.getPublicValue());
|
|
}else{
|
|
}else{
|
|
- return Results.error(10,"活动20点准时开启");
|
|
|
|
|
|
+ return Results.error(10,"活动"+startParam.getPublicValue()+"准时开启");
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|