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

设置、移除、测试权限组添加

This commit is contained in:
GeekFrog
2017-07-13 07:17:41 +08:00
parent 193f0a7dc4
commit e0e3ce448c
13 changed files with 347 additions and 79 deletions

View File

@ -57,4 +57,43 @@ public class SqlManager {
}
return false;
}
public boolean setTime(String uuid, String packageName, int days) {
for (int i = 0; i < 3; i++) {
try {
if (pds.setTime(uuid, packageName, days)) {
return true;
}
} catch (Exception e) {
e.printStackTrace();
}
}
return false;
}
public boolean removeTime(String uuid, String packageName) {
for (int i = 0; i < 3; i++) {
try {
if (pds.delPlayData(uuid, packageName)) {
return true;
}
} catch (Exception e) {
e.printStackTrace();
}
}
return false;
}
public boolean removeAllTime(String uuid) {
for (int i = 0; i < 3; i++) {
try {
if (pds.delPlayData(uuid)) {
return true;
}
} catch (Exception e) {
e.printStackTrace();
}
}
return false;
}
}