内网永远通过虹软人脸
This commit is contained in:
parent
b332e61548
commit
a093b488ab
@ -56,6 +56,8 @@ public class UfaceRecognitionController {
|
|||||||
public static final String LINUX = "linux";
|
public static final String LINUX = "linux";
|
||||||
@Value("${basePath}")
|
@Value("${basePath}")
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
@Value("${hongruanFacePass:}")
|
||||||
|
private String hongruanFacePass;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IWorkerInfoService workerInfoService;
|
private IWorkerInfoService workerInfoService;
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -75,6 +77,11 @@ public class UfaceRecognitionController {
|
|||||||
public Result<Map<String, Object>> checkFace(@RequestBody Map<String, Object> map) {
|
public Result<Map<String, Object>> checkFace(@RequestBody Map<String, Object> map) {
|
||||||
Map<String, Object> data = new HashMap<>(16);
|
Map<String, Object> data = new HashMap<>(16);
|
||||||
String os = System.getProperty("os.name");
|
String os = System.getProperty("os.name");
|
||||||
|
if (Objects.equals(hongruanFacePass,"1")) {
|
||||||
|
data.put("checkType", "1");
|
||||||
|
data.put("message", "成功");
|
||||||
|
return Result.success(data);
|
||||||
|
}
|
||||||
if (os.toLowerCase().startsWith(WIN) || os.toLowerCase().startsWith(LINUX)) {
|
if (os.toLowerCase().startsWith(WIN) || os.toLowerCase().startsWith(LINUX)) {
|
||||||
String fileUrl = MapUtils.getString(map, "fileUrl");
|
String fileUrl = MapUtils.getString(map, "fileUrl");
|
||||||
if (StringUtils.isNotEmpty(fileUrl)) {
|
if (StringUtils.isNotEmpty(fileUrl)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user