com.typhoon.unitysdk 1.0.76 → 1.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # 更新日志
2
+ ## [1.0.77] - 2023-12-27
3
+
4
+ ### 修复
5
+ * SDKHttpClient某些渠道出错问题
6
+
7
+
2
8
  ## [1.0.76] - 2023-12-22
3
9
 
4
- ### 优化
10
+ ### 优化
5
11
  * vivo小游戏JS端适配TPDebugger
6
12
  * oppo小游戏JS端适配TPDebugger
7
13
 
@@ -35,8 +35,15 @@ namespace TyphoonUnitySDK
35
35
  var uri = new Uri(url);
36
36
  using (UnityWebRequest www = UnityWebRequest.Post(uri, data))
37
37
  {
38
- byte[] bodyRaw = Encoding.UTF8.GetBytes(data);
39
- www.uploadHandler = (UploadHandler)new UploadHandlerRaw(bodyRaw);
38
+ try
39
+ {
40
+ byte[] bodyRaw = Encoding.UTF8.GetBytes(data);
41
+ www.uploadHandler = (UploadHandler)new UploadHandlerRaw(bodyRaw);
42
+ }
43
+ catch (Exception e)
44
+ {
45
+ }
46
+
40
47
  www.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
41
48
  if (timeOut > 0)
42
49
  {
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.76","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"version_log":"## [1.0.76] - 2023-12-22\r\n\r\n### 优化\n* vivo小游戏JS端适配TPDebugger\r\n* oppo小游戏JS端适配TPDebugger\r\n\r\n","major_flag":false,"write_time_stamp":1703255895000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
1
+ {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.77","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"version_log":"## [1.0.77] - 2023-12-27\r\n\r\n### 修复\n* SDKHttpClient某些渠道出错问题\r\n\r\n","major_flag":false,"write_time_stamp":1703653541000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}