1230登录

This commit is contained in:
huyulong 2024-12-30 23:23:56 +08:00
parent b273996793
commit 3e681bb62b
3 changed files with 4 additions and 3 deletions

View File

@ -36,7 +36,7 @@ public class test : MonoBehaviour
//} //}
//되쩌 //되쩌
void lodingWebSocket() public void lodingWebSocket()
{ {
LoginRequest data = new LoginRequest(); LoginRequest data = new LoginRequest();
data.UserId = GlobalData.ServerData.data.userId ; data.UserId = GlobalData.ServerData.data.userId ;

View File

@ -842,6 +842,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
retbutton: {fileID: 0} retbutton: {fileID: 0}
ClosureObj: {fileID: 0} ClosureObj: {fileID: 0}
test: {fileID: 7695717545649794846}
loginBtn: {fileID: 1493573621} loginBtn: {fileID: 1493573621}
getYzmBtn: {fileID: 1341634595} getYzmBtn: {fileID: 1341634595}
id: {fileID: 998972941} id: {fileID: 998972941}

View File

@ -9,7 +9,7 @@ using UnityEngine.UI;
public class LoginPanel : Base public class LoginPanel : Base
{ {
public test test;
public Button loginBtn; public Button loginBtn;
public Button getYzmBtn; public Button getYzmBtn;
public InputField id; public InputField id;
@ -59,7 +59,7 @@ public class LoginPanel : Base
// 将登录响应数据保存到静态变量中 // 将登录响应数据保存到静态变量中
GlobalData.ServerData = serverData; GlobalData.ServerData = serverData;
test.lodingWebSocket();
// 打印 access_token // 打印 access_token
Debug.Log(serverData.data.access_token); Debug.Log(serverData.data.access_token);