Commit 5124f88f authored by 王雪伟's avatar 王雪伟

加入接口

parent e56ed0a6
......@@ -49,7 +49,7 @@ public class GameController : MonoBehaviour
{
Dictionary<string, object> paras = new Dictionary<string, object>();
paras.Add("type", type);
HttpTool.Instance._Get("app/v1/watermelon/list_wd", paras, new Action<EmptyBean>((result) =>
HttpTool.Instance._Get("app/v1/watermelon/list_wd", paras, new Action<WithDrawBean>((result) =>
{
}), new Action<string, string>((code, msg) =>
......@@ -66,7 +66,7 @@ public class GameController : MonoBehaviour
{
Dictionary<string, object> paras = new Dictionary<string, object>();
paras.Add("song_id", song_id);
HttpTool.Instance._Get("app/v1/watermelon/songs_list", paras, new Action<EmptyBean>((result) =>
HttpTool.Instance._Get("app/v1/watermelon/songs_list", paras, new Action<SongBean>((result) =>
{
}), new Action<string, string>((code, msg) =>
......
......@@ -33,9 +33,8 @@ public class HomeInfoControl : MonoBehaviour
UIMgr.Getinstance().ShowPanel<MainPanel>(E_Layer.mid);
UIMgr.Getinstance().ShowPanel<TouchPanel>(E_Layer.bot);
GameController.GetInstance().GetSongsList(3);
GameController.GetInstance().GetWithdrawList(3);
GameController.GetInstance().GetSongsList(0);
GameController.GetInstance().GetWithdrawList(1);
}
......
using System;
using System.Collections.Generic;
[Serializable]
public class SongBean
{
public List<SongItemBean> list { get; set; }
}
[Serializable]
public class SongItemBean {
/// <summary>
/// 歌曲id
/// </summary>
public int song_id { get; set; }
/// <summary>
/// 歌曲名称
/// </summary>
public string song_name { get; set; }
/// <summary>
/// 歌曲封面url地址
/// </summary>
public string song_cover { get; set; }
/// <summary>
/// 歌曲播放url地址
/// </summary>
public string song_play { get; set; }
}
using System;
using System.Collections.Generic;
[Serializable]
public class WithDrawBean
{
/// <summary>
/// 用户当前合成的西瓜数
/// </summary>
public int userCount { get; set; }
public List<WithDrawItemBean> list { get; set; }
}
[Serializable]
public class WithDrawItemBean
{
/// <summary>
/// 提现id
/// </summary>
public int id { get; set; }
/// <summary>
/// 金额单位(app显示用)
/// </summary>
public string unit { get; set; }
/// <summary>
/// 提现描述
/// </summary>
public string desc { get; set; }
/// <summary>
/// 提现金额(app显示用)
/// </summary>
public string cashStr { get; set; }
/// <summary>
/// 提现类型(1 合成提现,2 签到类提现,3大额提现)
/// </summary>
public int type { get; set; }
/// <summary>
/// 提现角标
/// </summary>
public string text { get; set; }
/// <summary>
/// 提现达到要求需要的数量
/// </summary>
public int targetNum { get; set; }
/// <summary>
/// 提现到账数值(分)
/// </summary>
public int cash { get; set; }
/// <summary>
/// 提现状态(0 不可提现,1可提现,2已经提过现)
/// </summary>
public int status { get; set; }
/// <summary>
/// 当前已完成数量
/// </summary>
public int completeNum { get; set; }
/// <summary>
/// 包名
/// </summary>
public string pkg { get; set; }
/// <summary>
/// 不可提现的描述
/// </summary>
public string tip { get; set; }
}
fileFormatVersion: 2
guid: 9cb6b49ed36691242bc124d4d59f0108
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment