Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
M
MusicBigWatermelon
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
MusicBigWatermelon
Commits
5124f88f
Commit
5124f88f
authored
Aug 02, 2021
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入接口
parent
e56ed0a6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
105 additions
and
6 deletions
+105
-6
GameController.cs
Assets/Scripts/Controllers/GameController.cs
+2
-2
HomeInfoControl.cs
Assets/Scripts/Main/HomeInfoControl.cs
+2
-3
SongBean.cs
Assets/Scripts/Model/SongBean.cs
+24
-1
WithDrawBean.cs
Assets/Scripts/Model/WithDrawBean.cs
+66
-0
WithDrawBean.cs.meta
Assets/Scripts/Model/WithDrawBean.cs.meta
+11
-0
No files found.
Assets/Scripts/Controllers/GameController.cs
View file @
5124f88f
...
...
@@ -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
<
Empty
Bean
>((
result
)
=>
HttpTool
.
Instance
.
_Get
(
"app/v1/watermelon/list_wd"
,
paras
,
new
Action
<
WithDraw
Bean
>((
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
<
Empty
Bean
>((
result
)
=>
HttpTool
.
Instance
.
_Get
(
"app/v1/watermelon/songs_list"
,
paras
,
new
Action
<
Song
Bean
>((
result
)
=>
{
}),
new
Action
<
string
,
string
>((
code
,
msg
)
=>
...
...
Assets/Scripts/Main/HomeInfoControl.cs
View file @
5124f88f
...
...
@@ -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
);
}
...
...
Assets/Scripts/Model/SongBean.cs
View file @
5124f88f
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
;
}
}
Assets/Scripts/Model/WithDrawBean.cs
0 → 100644
View file @
5124f88f
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
;
}
}
Assets/Scripts/Model/WithDrawBean.cs.meta
0 → 100644
View file @
5124f88f
fileFormatVersion: 2
guid: 9cb6b49ed36691242bc124d4d59f0108
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment