_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/snailFactory/factoryTest.cs
2024-12-01 23:17:54 +08:00

35 lines
1.2 KiB
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Newtonsoft.Json;
using Spine;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using Unity.VisualScripting;
using UnityEngine;
public class factoryTest : MonoBehaviour
{
//9.1
queryFactory queryFactory = new queryFactory();
FactoryList factoryList = new FactoryList();
//9.2
queryUserSnailCount queryUserSnailCount = new queryUserSnailCount();
//9.3
buyNewFactory buyNewFactory = new buyNewFactory();
//9.4
bindSlot bindSlot = new bindSlot();
async void Start()
{
factoryList =await queryFactory.QueryFactoryList();
Debug.Log(factoryList.data.pageNo + "=======" + factoryList.data.dataList[0].useType+"==============================");
//queryUserSnailCount.QueryUserSnailCount();
//BuyNewFactoryResponse buyNewFactoryResponse = await buyNewFactory.BuyNewFactory();
bindSlot.QueryUserSnailCount(0,1);
}
}
//请求体===================================================================
//bodyuserIdLong用户的userId必传
//              pageNoInteger默认1非必传起始页
//              pageSizeInteger默认20非必传每页数目