Browse Source

修改點三接口

zhuyiyi 5 months ago
parent
commit
360e47385d
1 changed files with 2 additions and 2 deletions
  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;