1
This commit is contained in:
@@ -183,7 +183,7 @@ namespace Assets.MyGame.Scripts.Net
|
||||
{
|
||||
var json = req.downloadHandler.text;
|
||||
var res = JsonConvert.DeserializeObject<APIResponse<T>>(json);
|
||||
|
||||
Debug.Log("url----" + url+"--"+ "Json-"+json+"res--"+JsonConvert.SerializeObject(res));
|
||||
// 自动保存 token
|
||||
if (typeof(T) == typeof(UserToken))
|
||||
{
|
||||
@@ -192,7 +192,6 @@ namespace Assets.MyGame.Scripts.Net
|
||||
Debug.Log("微信登录成功 Token" + token);
|
||||
|
||||
}
|
||||
Log(json + "\n------Get");
|
||||
if (res.code == 0)
|
||||
{
|
||||
action?.Invoke(res.data);
|
||||
@@ -237,7 +236,8 @@ namespace Assets.MyGame.Scripts.Net
|
||||
{
|
||||
var json = req.downloadHandler.text;
|
||||
var res = JsonConvert.DeserializeObject<APIResponse<T>>(json);
|
||||
Log(json + "\n------Post");
|
||||
Debug.Log("url----" + url + "--" + "Json-" + json + "res--" + JsonConvert.SerializeObject(res));
|
||||
|
||||
if (res.code == 0)
|
||||
{
|
||||
action?.Invoke(res.data);
|
||||
|
||||
Reference in New Issue
Block a user