|
|
@ -100,6 +100,10 @@ namespace AksWebBrowser.Common |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (jo["returnCode"].ToString() == "1") |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Parame.isGPY = false; |
|
|
|
|
|
|
|
} |
|
|
|
ret = await NewMethod(query, ret); |
|
|
|
ret = await NewMethod(query, ret); |
|
|
|
} |
|
|
|
} |
|
|
|
num++; |
|
|
|
num++; |
|
|
@ -166,19 +170,20 @@ namespace AksWebBrowser.Common |
|
|
|
//读取parameters数据 |
|
|
|
//读取parameters数据 |
|
|
|
string parameters = jo3["parameters"].ToString(); |
|
|
|
string parameters = jo3["parameters"].ToString(); |
|
|
|
JObject jo4 = (JObject)JsonConvert.DeserializeObject(parameters); |
|
|
|
JObject jo4 = (JObject)JsonConvert.DeserializeObject(parameters); |
|
|
|
string sign_pic_path = jo4["sign_pic_path"].ToString(); |
|
|
|
string sign_pic = jo4["sign_pic"].ToString(); |
|
|
|
|
|
|
|
|
|
|
|
string dirpath = Utils.getSystemPaht() + @"/wwwroot/SignFile"; |
|
|
|
//string dirpath = Utils.getSystemPaht() + @"/wwwroot/SignFile"; |
|
|
|
if (!Directory.Exists(dirpath)) |
|
|
|
//if (!Directory.Exists(dirpath)) |
|
|
|
{ |
|
|
|
//{ |
|
|
|
Directory.CreateDirectory(dirpath); |
|
|
|
// Directory.CreateDirectory(dirpath); |
|
|
|
} |
|
|
|
//} |
|
|
|
var tempFile = dirpath + "/sign.jpg"; |
|
|
|
//var tempFile = dirpath + "/sign.jpg"; |
|
|
|
string command = $"convert {sign_pic_path} -quality 10 {tempFile}"; |
|
|
|
//string command = $"convert {sign_pic_path} -quality 10 {tempFile}"; |
|
|
|
MainModel.ShllCommad(command); |
|
|
|
//MainModel.ShllCommad(command); |
|
|
|
byte[] byteArray = File.ReadAllBytes(tempFile); |
|
|
|
//byte[] byteArray = File.ReadAllBytes(tempFile); |
|
|
|
string base64String = Convert.ToBase64String(byteArray); |
|
|
|
//string base64String = Convert.ToBase64String(byteArray); |
|
|
|
return "{\"keycode\":\"" + code + "\",\"message\":\"success\",\"code\":200,\"status\":true,\"suffix\":\"jpg\",\"data\":\"" + base64String + "\"}"; |
|
|
|
|
|
|
|
|
|
|
|
return "{\"keycode\":\"" + code + "\",\"message\":\"success\",\"code\":200,\"status\":true,\"suffix\":\"png\",\"data\":\"" + sign_pic + "\"}"; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
@ -414,7 +419,8 @@ namespace AksWebBrowser.Common |
|
|
|
return "500"; |
|
|
|
return "500"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
IDCardModel iDCardModel = new IDCardModel(); |
|
|
|
IDCardModel iDCardModel = new IDCardModel(); |
|
|
|
iDCardModel.Name = jo4["cn_name"].ToString(); |
|
|
|
iDCardModel.Name = jo4["cn_name"].ToString(); |
|
|
|
iDCardModel.Sex = jo4["sex"].ToString(); |
|
|
|
iDCardModel.Sex = jo4["sex"].ToString(); |
|
|
|