1
This commit is contained in:
@@ -25,11 +25,11 @@ namespace Stary.Evo
|
||||
try
|
||||
{
|
||||
#if UNITY_2021_3_OR_NEWER
|
||||
using UnityWebRequest webRequest = UnityWebRequest.Post(url, postData);
|
||||
using UnityWebRequest webRequest = UnityWebRequest.Post(url, postData);
|
||||
#else
|
||||
using UnityWebRequest webRequest = UnityWebRequest.PostWwwForm(url, postData);
|
||||
#endif
|
||||
|
||||
|
||||
byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(postData);
|
||||
webRequest.uploadHandler = new UploadHandlerRaw(postBytes);
|
||||
webRequest.SetRequestHeader("Content-Type", "application/json");
|
||||
@@ -270,7 +270,11 @@ namespace Stary.Evo
|
||||
|
||||
try
|
||||
{
|
||||
using (UnityWebRequest webRequest = UnityWebRequest.PostWwwForm(url, postData)) //第二种写法此行注释
|
||||
#if UNITY_2021_3_OR_NEWER
|
||||
using (UnityWebRequest webRequest = UnityWebRequest.Post(url, postData)) //第二种写法此行注释
|
||||
#else
|
||||
using (UnityWebRequest webRequest = UnityWebRequest.PostWwwForm(url, postData)) //第二种写法此行注释
|
||||
#endif
|
||||
{
|
||||
byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(postData);
|
||||
webRequest.uploadHandler = new UploadHandlerRaw(postBytes);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.staryevo.main",
|
||||
"version": "1.3.31",
|
||||
"version": "1.3.32",
|
||||
"displayName": "00.StaryEvo",
|
||||
"description": "This is an Framework package(后台服务器版本,端口9527)",
|
||||
"unity": "2021.3",
|
||||
|
||||
Reference in New Issue
Block a user