Explorar o código

修改點三接口

zhuyiyi hai 5 meses
pai
achega
360e47385d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      SiteCore/taobao/apiHelper.cs

+ 2 - 2
SiteCore/taobao/apiHelper.cs

@@ -121,7 +121,7 @@ namespace SiteCore
             {
                 URL = pUrl,
                 Method = "POST",
-                ContentType = "application/x-www-form-urlencoded",
+                ContentType = "application/json;charset=UTF-8",
                 Postdata = ro_json
             };
             item.PostEncoding = Encoding.UTF8;
@@ -165,7 +165,7 @@ namespace SiteCore
             {
                 URL = pUrl,
                 Method = "POST",
-                ContentType = "application/x-www-form-urlencoded",
+                ContentType = "application/json;charset=UTF-8",
                 Postdata = ro_json
             };
             item.PostEncoding = Encoding.UTF8;