|
|
@@ -132,8 +132,9 @@ public class AuthorizeHelper { |
|
|
|
LocalDate authorizeDate=LocalDate.of(year,month,day); |
|
|
|
LocalDate currentDate=LocalDate.now(); |
|
|
|
long daysBetween = ChronoUnit.DAYS.between( currentDate,authorizeDate)+1; |
|
|
|
if(daysBetween<=5&&daysBetween>0){ |
|
|
|
AlertDialogUtils.showDialog(activity,"授权提醒","您的【黑菠萝小炒】授权即将到期,为避免影响后期使用,请您及时联系黑菠萝科技有限公司进行重新授权!\r\n"+"剩余 "+daysBetween+" 天"); |
|
|
|
if(daysBetween<=5){ |
|
|
|
if(daysBetween>0) |
|
|
|
AlertDialogUtils.showDialog(activity,"授权提醒","您的【黑菠萝小炒】授权即将到期,为避免影响后期使用,请您及时联系黑菠萝科技有限公司进行重新授权!\r\n"+"剩余 "+daysBetween+" 天"); |
|
|
|
ConfigName.getInstance().IsVisibleAuthorize=true; |
|
|
|
} |
|
|
|
} |
|
|
|