35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
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);
|
||
}
|
||
|
||
}
|
||
//请求体===================================================================
|
||
//body:userId:Long,用户的userId,必传
|
||
// pageNo:Integer,默认1,非必传,起始页
|
||
// pageSize:Integer,默认20,非必传,每页数目
|