Browse Source

授权功能添加

授权码生成工具
pry 4 months ago
parent
commit
ecbee4d2e9
2 changed files with 4 additions and 3 deletions
  1. +1
    -1
      app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java
  2. +3
    -2
      app/src/main/java/com/bonait/bnframework/common/helper/AuthorizeHelper.java

+ 1
- 1
app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java View File

@@ -2353,7 +2353,7 @@ public class ExecuteTheRecipe {
*/
public static void showlog(String msg) {
Log.e("hbl", msg);
/*ToastUtils.info(msg);*/
ToastUtils.info(msg);
}
//endregion
}

+ 3
- 2
app/src/main/java/com/bonait/bnframework/common/helper/AuthorizeHelper.java View File

@@ -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;
}
}


Loading…
Cancel
Save