修改成常量

back_recharge
lvxinran 2021-07-12 11:33:45 +08:00
parent 3d340f2511
commit ce10e5f88a
1 changed files with 1 additions and 1 deletions

View File

@ -1405,7 +1405,7 @@ public class TimeUtils {
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(time);
int offset = 0;
if(cal.get(Calendar.DAY_OF_WEEK)==1){
if(cal.get(Calendar.DAY_OF_WEEK)==Calendar.SUNDAY){
offset-=TimeUtils.WEEK;
}
cal.set(Calendar.DAY_OF_WEEK,week==7?0:week+1);