This commit is contained in:
舒荣森 2024-11-26 16:54:06 +08:00
parent 13015a5d32
commit 2791991b56
2 changed files with 17 additions and 6 deletions

View File

@ -19,9 +19,19 @@ public class DonatePanelItem : BaseUIPanel
testLogo(); testLogo();
} }
void buttonOnClick() public class voluteCoinItem
{ {
public string toCuteNo;
public int voluteCoin;
}
async void buttonOnClick()
{
voluteCoinItem body = new voluteCoinItem();
body.toCuteNo = Recipient.text;
body.voluteCoin = int.Parse(GiftQuantity.text);
string response = await web.SendRequest(web.URL + "/snail/transfer/voluteCoin", "POST", JsonUtility.ToJson(body), testhead);//²âÊÔ
Debug.Log(response);
} }
async void GiftQuantityData(string userInput) async void GiftQuantityData(string userInput)
{ {

View File

@ -57,11 +57,12 @@ public class Base : MonoBehaviour
addEventPopUp("测试登录成功"); addEventPopUp("测试登录成功");
testhead = new Dictionary<string, string> testhead = new Dictionary<string, string>
{ {
{ "Authorization", TestserverResponse.data.token } { "Authorization", TestserverResponse.data.token }
}; };
return;
} }
addEventPopUp("꿎桿되쩌呵겨"); addEventPopUp(response.message);
testhead = new Dictionary<string, string>(); testhead = new Dictionary<string, string>();
} }