no message
This commit is contained in:
parent
31670d8962
commit
db05137f27
|
|
@ -529,7 +529,8 @@ public class OrderServiceImpl implements OrderService {
|
|||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(orderTime);
|
||||
int hour = calendar.get(Calendar.HOUR_OF_DAY);
|
||||
if (hour < 8 || hour > 18) {
|
||||
//只在8-20点生效
|
||||
if (hour < 8 || hour > 20) {
|
||||
// 设置时间为今天的 8 点
|
||||
Calendar newCalendar = Calendar.getInstance();
|
||||
newCalendar.set(Calendar.HOUR_OF_DAY, 8);
|
||||
|
|
|
|||
Loading…
Reference in New Issue