Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
First_FKQCW
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
王雪伟
First_FKQCW
Commits
b2e952dc
Commit
b2e952dc
authored
May 18, 2021
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改进入天天提现时刷新列表
parent
27682429
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
24 deletions
+72
-24
MyEventType.cs
Assets/Game/Main/Scripts/EventUtil/MyEventType.cs
+2
-0
MyWalletData.cs
Assets/Game/Main/Scripts/Model/MyWalletData.cs
+25
-0
MyWalletData.cs.meta
Assets/Game/Main/Scripts/Model/MyWalletData.cs.meta
+11
-0
EveryDayControl.cs
Assets/Game/Main/Scripts/View/EveryDayControl.cs
+32
-23
HomeInfoControl.cs
Assets/Game/Main/Scripts/View/HomeInfoControl.cs
+2
-1
No files found.
Assets/Game/Main/Scripts/EventUtil/MyEventType.cs
View file @
b2e952dc
...
...
@@ -110,4 +110,6 @@ public enum MyEventType
CLOSE_CLOCKIN_PAGE
,
//关闭防护罩
CLOSE_PROCTION
,
//更新天天提现列表数据
UPDATE_EVERY_DAT_LIST
,
}
Assets/Game/Main/Scripts/Model/MyWalletData.cs
0 → 100644
View file @
b2e952dc
using
System.Collections.Generic
;
public
class
MyWalletData
{
public
int
userCount
;
public
double
cash
;
public
List
<
Withdraw
>
list
;
public
class
Withdraw
{
public
int
id
;
public
int
status
;
public
int
cash
;
public
string
cashStr
;
public
string
unit
;
public
string
text
;
public
string
desc
;
}
//是否微信登录
public
int
status
;
//提现
public
string
reason
;
}
Assets/Game/Main/Scripts/Model/MyWalletData.cs.meta
0 → 100644
View file @
b2e952dc
fileFormatVersion: 2
guid: 50b8c7198d1e443b1858921d3f60650a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scripts/View/EveryDayControl.cs
View file @
b2e952dc
...
...
@@ -23,7 +23,15 @@ public class EveryDayControl : MonoBehaviour
public
GameObject
Redheart
;
void
Start
()
{
getHeartList
();
//getHeartList();
}
private
void
Awake
()
{
EventCenter
.
AddListener
(
MyEventType
.
UPDATE_EVERY_DAT_LIST
,
getHeartList
);
}
private
void
OnDestroy
()
{
EventCenter
.
RemoveListener
(
MyEventType
.
UPDATE_EVERY_DAT_LIST
,
getHeartList
);
}
/// <summary>
/// 获取红心list
...
...
@@ -178,28 +186,29 @@ public class EveryDayControl : MonoBehaviour
{
#if UNITY_ANDROID
AndroidJavaObject
util
=
new
AndroidJavaObject
(
"com.ym.zxhcsdkaar.TDUtils"
);
//util.Call("TD", GetActivity(), new TdListenerProxy((s) =>
//{
// Dictionary<string, object> parameters = new Dictionary<string, object>();
// parameters.Add("id", id);
// parameters.Add("blackBox", s);
// HttpTool.Instance._Post("app/v1/game/module/hearts/wd", parameters,
// new Action<MyWalletData>((result) => {
// if (null != result)
// {
// if (result.status == 1)
// {
// EventUtils.OnEvent("user_cashOut", "提现成功");
// }
// getHeartList();
// ToastPlugin.ToastHelper.ShowToast(result.reason);
// //close();
// }
// }), new Action<string, string>((code, mes) => { }));
//}));
util
.
Call
(
"TD"
,
GetActivity
(),
new
TdListenerProxy
((
s
)
=>
{
Dictionary
<
string
,
object
>
parameters
=
new
Dictionary
<
string
,
object
>();
parameters
.
Add
(
"id"
,
id
);
parameters
.
Add
(
"blackBox"
,
s
);
HttpTool
.
Instance
.
_Post
(
"app/v1/game/module/hearts/wd"
,
parameters
,
new
Action
<
MyWalletData
>((
result
)
=>
{
if
(
null
!=
result
)
{
if
(
result
.
status
==
1
)
{
EventUtils
.
OnEvent
(
"user_cashOut"
,
"提现成功"
);
}
getHeartList
();
ToastPlugin
.
ToastHelper
.
ShowToast
(
result
.
reason
);
//close();
}
}),
new
Action
<
string
,
string
>((
code
,
mes
)
=>
{
}));
}));
#else
callback
(
"不支持"
);
#endif
...
...
Assets/Game/Main/Scripts/View/HomeInfoControl.cs
View file @
b2e952dc
...
...
@@ -370,6 +370,7 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
{
AudioUtils
.
ins
.
PlayBtnAudio
();
EveryDayWithDraw
.
SetActive
(
true
);
EventCenter
.
Broadcast
(
MyEventType
.
UPDATE_EVERY_DAT_LIST
);
}
//点击防火罩
public
void
onClickProction
()
...
...
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