1
1
mirror of https://github.com/geekfrog/PermissionsTime.git synced 2025-09-08 18:45:38 +00:00

功能扩展 + BUG修复

1.命令提示语言支持
2.mysql模式下的bug(时间累积和创建表)
3.支持自定义时间单位 天、小时、分钟
This commit is contained in:
2017-07-26 18:13:45 +08:00
parent 8bc004eb12
commit 6cdac1145d
19 changed files with 209 additions and 109 deletions

View File

@ -72,10 +72,10 @@ public class SqlManager {
return Collections.emptyList();
}
public boolean giveTime(String uuid, String packageName, int days) {
public boolean giveTime(String uuid, String packageName, int time) {
for (int i = 0; i < 3; i++) {
try {
if (pds.addTime(uuid, packageName, days)) {
if (pds.addTime(uuid, packageName, time)) {
return true;
}
} catch (Exception e) {
@ -85,10 +85,10 @@ public class SqlManager {
return false;
}
public boolean setTime(String uuid, String packageName, int days) {
public boolean setTime(String uuid, String packageName, int time) {
for (int i = 0; i < 3; i++) {
try {
if (pds.setTime(uuid, packageName, days)) {
if (pds.setTime(uuid, packageName, time)) {
return true;
}
} catch (Exception e) {