1
This commit is contained in:
parent
efad999c5a
commit
326fa19a13
@ -36,11 +36,11 @@ public class test : MonoBehaviour
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
//怬
|
//怬
|
||||||
public void lodingWebSocket()
|
public void lodingWebSocket(string str)
|
||||||
{
|
{
|
||||||
LoginRequest data = new LoginRequest();
|
LoginRequest data = new LoginRequest();
|
||||||
data.UserId = GlobalData.ServerData.data.userId ;
|
data.UserId = GlobalData.ServerData.data.userId ;
|
||||||
data.Account = GlobalData.ServerData.data.openId;
|
data.Account = str;
|
||||||
|
|
||||||
WSMessage msg = new WSMessage();
|
WSMessage msg = new WSMessage();
|
||||||
msg.Module = "hall";
|
msg.Module = "hall";
|
||||||
|
@ -45,7 +45,7 @@ public class LoginPanel : Base
|
|||||||
grantType = "password",
|
grantType = "password",
|
||||||
clientId = "e5cd7e4891bf95d1d19206ce24a7b32e",
|
clientId = "e5cd7e4891bf95d1d19206ce24a7b32e",
|
||||||
userType = "company_user",
|
userType = "company_user",
|
||||||
username = id.text,//"ZF16c788632",13699802230,13051628292
|
username = v,//"ZF16c788632",13699802230,13051628292
|
||||||
password = pwd.text//"YYL5371!"
|
password = pwd.text//"YYL5371!"
|
||||||
};
|
};
|
||||||
image.gameObject.SetActive (true);
|
image.gameObject.SetActive (true);
|
||||||
@ -59,7 +59,7 @@ public class LoginPanel : Base
|
|||||||
|
|
||||||
// 将登录响应数据保存到静态变量中
|
// 将登录响应数据保存到静态变量中
|
||||||
GlobalData.ServerData = serverData;
|
GlobalData.ServerData = serverData;
|
||||||
//test.lodingWebSocket();
|
test.lodingWebSocket(id.text);
|
||||||
// 打印 access_token
|
// 打印 access_token
|
||||||
Debug.Log(serverData.data.access_token);
|
Debug.Log(serverData.data.access_token);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user