|
@@ -359,7 +359,7 @@ public class StundentFaceProcessController {
|
|
|
String faceId = null;
|
|
|
if(process.getHikvisionResult() != null && process.getHikvisionResult().startsWith("{") && process.getHikvisionResult().endsWith("}")){
|
|
|
JsonObject object = parser.parse(process.getHikvisionResult()).getAsJsonObject();
|
|
|
- if("0".equals(object.get("code").getAsString()) && "success".equals(object.get("msg").getAsString())){
|
|
|
+ if("0".equals(object.get("code").getAsString()) && "success".equals(object.get("msg").getAsString()) && !object.get("data").isJsonNull()){
|
|
|
faceId = object.get("data").getAsJsonObject().get("faceId").getAsString();
|
|
|
}
|
|
|
}
|