Commit e84bc359 authored by 王雪伟's avatar 王雪伟

加入上报接口

parent 9ad959bd
......@@ -6,7 +6,7 @@ using UnityEngine;
public class GameController : MonoBehaviour
{
private static GameController Instance;
public static GameController GetInstance()
public static GameController GetInstance()
{
if (Instance == null)
{
......@@ -75,6 +75,22 @@ public class GameController : MonoBehaviour
}));
}
/// <summary>
/// 合成歌曲上报
/// </summary>
public void GetNoteCompleted(int song_id)
{
Dictionary<string, object> paras = new Dictionary<string, object>();
paras.Add("song_id", song_id);
HttpTool.Instance._Get("app/v1/watermelon/note_completed", paras, new Action<EmptyBean>((result) =>
{
}), new Action<string, string>((code, msg) =>
{
Debug.unityLogger.Log("合成歌曲上报 " + code + " msg " + msg);
}));
}
}
......@@ -28,9 +28,14 @@ public class HomeInfoControl : MonoBehaviour
//GetHomeInfo();
//获取下一组要生成的水果的音符
//GameController.GetInstance().GetNextNoteList(0);
//
UIMgr.Getinstance().ShowPanel<MainPanel>(E_Layer.mid);
UIMgr.Getinstance().ShowPanel<TouchPanel>(E_Layer.bot);
GameController.GetInstance().GetSongsList(3);
GameController.GetInstance().GetWithdrawList(3);
}
......
using System;
[Serializable]
public class SongBean
{
}
fileFormatVersion: 2
guid: 58243d454dd78024ab8f6e281b70a2ea
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