使用库修改
This commit is contained in:
parent
bd375364d4
commit
78f9d10d97
|
@ -228,7 +228,7 @@ namespace SgManager.AI
|
|||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host);
|
||||
request.Method = "post";
|
||||
request.KeepAlive = true;
|
||||
String str = "{\"image\":\"" + imgUrl + "\",\"image_type\":\"URL\",\"group_id\":\"WX_Face_TCC\",\"user_id\":\"" + user_card + "\",\"user_info\":\"" + user_id + "\",\"quality_control\":\"LOW\",\"liveness_control\":\"NORMAL\"}";
|
||||
String str = "{\"image\":\"" + imgUrl + "\",\"image_type\":\"URL\",\"group_id\":\"Face\",\"user_id\":\"" + user_card + "\",\"user_info\":\"" + user_id + "\",\"quality_control\":\"LOW\",\"liveness_control\":\"NORMAL\"}";
|
||||
byte[] buffer = encoding.GetBytes(str);
|
||||
request.ContentLength = buffer.Length;
|
||||
request.GetRequestStream().Write(buffer, 0, buffer.Length);
|
||||
|
@ -265,7 +265,7 @@ namespace SgManager.AI
|
|||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host);
|
||||
request.Method = "post";
|
||||
request.KeepAlive = true;
|
||||
String str = "{\"image\":\"" + imgUrl + "\",\"image_type\":\"URL\",\"group_id\":\"WX_Face_TCC\",\"user_id\":\"" + user_card + "\",\"user_info\":\"" + user_id + "\",\"quality_control\":\"LOW\",\"liveness_control\":\"NORMAL\"}";
|
||||
String str = "{\"image\":\"" + imgUrl + "\",\"image_type\":\"URL\",\"group_id\":\"Face\",\"user_id\":\"" + user_card + "\",\"user_info\":\"" + user_id + "\",\"quality_control\":\"LOW\",\"liveness_control\":\"NORMAL\"}";
|
||||
byte[] buffer = encoding.GetBytes(str);
|
||||
request.ContentLength = buffer.Length;
|
||||
request.GetRequestStream().Write(buffer, 0, buffer.Length);
|
||||
|
|
Loading…
Reference in New Issue