|
|
|
@ -1676,14 +1676,14 @@ namespace AksWebBrowser
|
|
|
|
|
{ |
|
|
|
|
return "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"keycode\":\"" + "" + "\",\"message\":\"Falied\",\"code\":\"400\",\"status\":false,\"data\":\"" + "参数解析错误" + "\"}"; |
|
|
|
|
} |
|
|
|
|
string faceA = Utils.Base64ByImagesPath(param.faceA, "faceA"); |
|
|
|
|
string faceB = Utils.Base64ByImagesPath(param.faceB, "faceB"); |
|
|
|
|
string faceA = Utils.Base64ByImagesPath(param.faceA.Replace("data:image/jpg;base64,",""), "faceA"); |
|
|
|
|
string faceB = Utils.Base64ByImagesPath(param.faceB.Replace("data:image/jpg;base64,",""), "faceB"); |
|
|
|
|
var mode2 = new |
|
|
|
|
{ |
|
|
|
|
filePathA = faceA, |
|
|
|
|
filePathB = faceB |
|
|
|
|
}; |
|
|
|
|
return "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"keycode\":\"" + param.code + "\",\"message\":\"seccse\",\"code\":\"200\",\"status\":true,\"data\":\"" + JsonConvert.SerializeObject(mode2) + "\"}"; |
|
|
|
|
return "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"keycode\":\"" + param.code + "\",\"message\":\"seccse\",\"code\":\"200\",\"status\":true,\"data\":" + JsonConvert.SerializeObject(mode2) + "}"; |
|
|
|
|
} |
|
|
|
|
catch (Exception ex) |
|
|
|
|
{ |
|
|
|
|