37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
using TMPro;
|
|||
|
using UnityEngine.UI;
|
|||
|
public class Change_Password : Base
|
|||
|
{
|
|||
|
public TMP_InputField PhonenumberInput;
|
|||
|
public TMP_InputField YanzhengmaInput;
|
|||
|
public TMP_InputField NewPasswordInput;
|
|||
|
public Button ConfirmBtn;
|
|||
|
public ShimingPanel shimingPanel;
|
|||
|
// Start is called before the first frame update
|
|||
|
void Start()
|
|||
|
{
|
|||
|
testLogo();
|
|||
|
ConfirmBtn.onClick.AddListener(ConfirmClick);
|
|||
|
PhonenumberInput.placeholder.GetComponent<TextMeshProUGUI>().text = shimingPanel.phonenumber.text;
|
|||
|
}
|
|||
|
|
|||
|
async void ConfirmClick()
|
|||
|
{
|
|||
|
string response = "";//<2F><><EFBFBD><EFBFBD>
|
|||
|
string body = "{\"password\":\"" +NewPasswordInput.text + "\",\"verifyCode\":" + int.Parse(YanzhengmaInput.text) + "}";
|
|||
|
Debug.Log(body);
|
|||
|
response = await web.SendRequest(web.URL + "/snail/user/changePassword", "POST", body, testhead);
|
|||
|
Debug.Log(response);
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
// Update is called once per frame
|
|||
|
void Update()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|