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 +7 -1
- package/Runtime/SDKHttpClient.cs +9 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/Runtime/SDKHttpClient.cs
CHANGED
|
@@ -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
|
-
|
|
39
|
-
|
|
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.
|
|
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"}}
|