1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user