This commit is contained in:
2025-06-10 12:15:22 +08:00
parent 82336d1ea2
commit 0ff5158c3b
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ namespace Stary.Evo
roleType = "client",
};
string postData = JsonConvert.SerializeObject(data);
using (UnityWebRequest webRequest = UnityWebRequest.Post(url, postData)) //第二种写法此行注释
using (UnityWebRequest webRequest = UnityWebRequest.PostWwwForm(url, postData)) //第二种写法此行注释
{
byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(postData);
webRequest.uploadHandler = new UploadHandlerRaw(postBytes);
@@ -244,7 +244,7 @@ namespace Stary.Evo
};
}
using (UnityWebRequest webRequest = UnityWebRequest.Post(url, postData)) //第二种写法此行注释
using (UnityWebRequest webRequest = UnityWebRequest.PostWwwForm(url, postData)) //第二种写法此行注释
{
byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(postData);
webRequest.uploadHandler = new UploadHandlerRaw(postBytes);

View File

@@ -1,6 +1,6 @@
{
"name": "com.staryevo.main",
"version": "1.2.4",
"version": "1.2.5",
"displayName": "00.StaryEvo",
"description": "This is an Framework package(后台服务器版本端口9527)",
"unity": "2021.3",