_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/snailFactory/factoryTest.cs

35 lines
1.2 KiB
C#
Raw Normal View History

2024-12-01 23:17:54 +08:00
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非必传每页数目