This commit is contained in:
2026-08-01 15:27:12 +08:00
parent f9b60ea26e
commit dddcbbfbfa
5 changed files with 72 additions and 14 deletions
+5 -5
View File
@@ -249,7 +249,7 @@ namespace Assets.MyGame.Scripts.Net
var json = req.downloadHandler.text;
var res = JsonConvert.DeserializeObject<APIResponse<T>>(json);
#if UNITY_EDITOR
Debug.Log("url----" + url+"--"+ "Json-"+json+"res--"+JsonConvert.SerializeObject(res));
Debug.Log("url----" + url + "--" + "Json-" + json + "res--" + JsonConvert.SerializeObject(res));
#endif
Debug.Log("url----" + url + "--" + "Json-" + json + "res--" + JsonConvert.SerializeObject(res));
@@ -313,9 +313,9 @@ namespace Assets.MyGame.Scripts.Net
var res = JsonConvert.DeserializeObject<APIResponse<T>>(json);
#if UNITY_EDITOR
Debug.Log("url----" + url + "--" + "Json-" + json + "res--" + JsonConvert.SerializeObject(res));
#else
Debug.Log("url----" + url + "--" + "Json-" + json + "res--" + JsonConvert.SerializeObject(res));
#endif
Debug.Log("url----" + url + "--" + "Json-" + json + "res--" + JsonConvert.SerializeObject(res));
// 自动保存 token
if (typeof(T) == typeof(UserToken))
@@ -383,8 +383,8 @@ namespace Assets.MyGame.Scripts.Net
}
public static void Log(string json)
{
#if UNITY_EDITOR
Debug.Log(json);
#if UNITY_EDITOR
Debug.Log(json);
#endif
}