_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Login/11/motherFucker511.cs

51 lines
1.4 KiB
C#
Raw Normal View History

2024-11-14 18:25:21 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Threading.Tasks;
public class motherFucker511 : MonoBehaviour
{
public int gameEscapeId;
public int carrySeconds;
// <20><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD> gameEscapeId <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
public static event Action<int> OnGameEscapeIdUpdated;
private string token; // <20><><EFBFBD>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD> token
void Start()
{
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>ȡ token
LoginAndGetToken.OnTokenReceived += HandleTokenReceived;
}
void HandleTokenReceived(string token)
{
this.token = token;
Debug.Log("HandleTokenReceived<65><64><EFBFBD><EFBFBD>=============================================================================================================:" + token);
gameEscape(token);
}
public async Task gameEscape(string token)
{
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7>ֵ
string Authorization = token;
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ
Dictionary<string, string> head51 = new Dictionary<string, string>
{
{ "Authorization", Authorization }
};
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󲢽<EFBFBD><F3B2A2BD><EFBFBD><EFBFBD><EFBFBD>Ӧ
string response51 = await web.SendRequest("http://121.40.42.41:8080/snail/LatestGame511/queryLatest", "POST", "{}", head51);
Debug.Log("5.1<EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɱ" + response51);
}
}