1中转仓订单退货功能 2中转仓订单运费根据oem或管理员设定调整 3其他一些问题修复
This commit is contained in:
1 parent
d6f81f9ef4
commit
2e20cbdf68
24 files changed
+834
-292
No files matched your search
+10
-6
@@ -1169,6 +1169,9 @@ Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
|
||||
request.ReadWriteTimeout = timeOut * 1000;
|
||||
}
|
||||
request.Proxy = null;
|
||||
|
||||
request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate");
|
||||
|
||||
request.ContentType = "application/x-www-form-urlencoded; charset=" + codeType;
|
||||
if (!string.IsNullOrEmpty(contentType))
|
||||
{
|
||||
@@ -1186,12 +1189,13 @@ Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
|
||||
|
||||
Stream receiveStream = response.GetResponseStream();
|
||||
StreamReader readStream = new StreamReader(receiveStream, Encoding.GetEncoding(codeType));
|
||||
string data = readStream.ReadToEnd().Trim();
|
||||
if (string.IsNullOrEmpty(data))
|
||||
{
|
||||
return "{\"code\": 400,\"data\": []}";
|
||||
}
|
||||
return data;
|
||||
//string data = readStream.ReadToEnd().Trim();
|
||||
//if (string.IsNullOrEmpty(data))
|
||||
//{
|
||||
// return "{\"code\": 400,\"data\": []}";
|
||||
//}
|
||||
//return data;
|
||||
return ReadResponse(response);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user