|
@@ -826,10 +826,6 @@ public class BaiduFacePreviewActivity extends BaiduFaceMainActivity {
|
|
|
DataReturns.getInstance().clearData();
|
|
|
//判断用户是否在有效期内
|
|
|
if (ConfigManager.getAuthenticationBeanListBean().getValidTimeSwitch() && isUserExpire(user)) {
|
|
|
- AppLogUtils.e(true, TAG + " ,用户是否过期", "doScanFaceResult_Success(), 用户已过期");
|
|
|
- FederatedPlatformsResponseBean federatedPlatformsResponseBean = DataManager.getInstance().getErrorOutcome(
|
|
|
- "LocalError_B", "人员不在有效期", 500, "人员不在有效期");
|
|
|
- BaiDuFaceView.getInstance().getPlatformsCod(federatedPlatformsResponseBean);
|
|
|
return;
|
|
|
}
|
|
|
//判断黑名单中是否存在该用户
|
|
@@ -901,15 +897,26 @@ public class BaiduFacePreviewActivity extends BaiduFaceMainActivity {
|
|
|
long startTime = user.getStartTime();
|
|
|
long endTime = user.getEndTime();
|
|
|
long curTime = System.currentTimeMillis();
|
|
|
-
|
|
|
- //已过期
|
|
|
- if (curTime <= startTime || curTime >= endTime) {
|
|
|
-
|
|
|
- FederatedPlatformsResponseBean federatedPlatformsResponseBean = DataManager.getInstance().getErrorOutcome("LocalError_B", "不在有效期", 500, "不在有效期");
|
|
|
+ if (curTime <= startTime){
|
|
|
+ AppLogUtils.e(true, TAG + " ,用户是否过期", "doScanFaceResult_Success(), 用户未到有效时间");
|
|
|
+ FederatedPlatformsResponseBean federatedPlatformsResponseBean = DataManager.getInstance().getErrorOutcome("LocalError_B", "未到有效时间", 500, "未到有效时间");
|
|
|
BaiDuFaceView.getInstance().getPlatformsCod(federatedPlatformsResponseBean);
|
|
|
-
|
|
|
return true;
|
|
|
}
|
|
|
+ if (curTime >= endTime){
|
|
|
+ AppLogUtils.e(true, TAG + " ,用户是否过期", "doScanFaceResult_Success(), 用户已过期");
|
|
|
+ FederatedPlatformsResponseBean federatedPlatformsResponseBean = DataManager.getInstance().getErrorOutcome("LocalError_B", "已过期", 500, "已过期");
|
|
|
+ BaiDuFaceView.getInstance().getPlatformsCod(federatedPlatformsResponseBean);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+// //已过期
|
|
|
+// if (curTime <= startTime || curTime >= endTime) {
|
|
|
+//
|
|
|
+// FederatedPlatformsResponseBean federatedPlatformsResponseBean = DataManager.getInstance().getErrorOutcome("LocalError_B", "不在有效期", 500, "不在有效期");
|
|
|
+// BaiDuFaceView.getInstance().getPlatformsCod(federatedPlatformsResponseBean);
|
|
|
+//
|
|
|
+// return true;
|
|
|
+// }
|
|
|
return false;
|
|
|
}
|
|
|
|