Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
W
wdlc_mjb_unity
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
王雪伟
wdlc_mjb_unity
Commits
bcd25e03
Commit
bcd25e03
authored
Jun 30, 2021
by
LiLiuZhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
c18dd1d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
LeeTest.cs
Assets/Game/Main/Resource/LeeScripts/LeeTest.cs
+2
-2
DialogControl.cs
Assets/Game/Main/Scripts/View/DialogControl.cs
+11
-10
No files found.
Assets/Game/Main/Resource/LeeScripts/LeeTest.cs
View file @
bcd25e03
...
@@ -11,9 +11,9 @@ public class LeeTest : MonoBehaviour
...
@@ -11,9 +11,9 @@ public class LeeTest : MonoBehaviour
{
{
if
(
Input
.
GetKeyDown
(
KeyCode
.
R
))
if
(
Input
.
GetKeyDown
(
KeyCode
.
R
))
{
{
DialogControl
.
Instance
.
NetWorkRequest
<
CashOutInfo
>(
true
,
"/app/v2/cscmnq/inf
o"
,
null
,(
obj
)=>
DialogControl
.
Instance
.
NetWorkRequest
<
object
>(
false
,
"app/v2/cscmnq/receive_diamond_by_vide
o"
,
null
,(
obj
)=>
{
{
Debug
.
LogError
(
obj
.
wdDataList
.
Count
);
});
});
}
}
}
}
...
...
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
bcd25e03
...
@@ -531,22 +531,21 @@ public class DialogControl : MonoBehaviour
...
@@ -531,22 +531,21 @@ public class DialogControl : MonoBehaviour
{
{
Debug
.
LogError
(
"Unity发生错误,将在60秒内重启"
);
Debug
.
LogError
(
"Unity发生错误,将在60秒内重启"
);
// app / v2 / cscmnq / first_info
//Lee
//closeDiamondDialog();
//closeDiamondDialog();
closeDiamondDialog
();
closeDiamondDialog
();
AudioUtils
.
ins
.
PlayBtnAudio
();
AudioUtils
.
ins
.
PlayBtnAudio
();
EventUtils
.
OnEvent
(
"addDiamond_click"
,
"点击钻石加号"
);
EventUtils
.
OnEvent
(
"addDiamond_click"
,
"点击钻石加号"
);
HttpTool
.
Instance
.
_Get
(
"app/v
1/wdlc/reward
/diamond_by_video_status"
,
null
,
new
Action
<
DiamondStatusBean
>((
bean
)
=>
HttpTool
.
Instance
.
_Get
(
"app/v
2/cscmnq
/diamond_by_video_status"
,
null
,
new
Action
<
DiamondStatusBean
>((
bean
)
=>
{
{
DiamondplayNum
=
bean
.
playNum
;
DiamondplayNum
=
bean
.
playNum
;
if
(
DiamondplayNum
>
0
)
if
(
DiamondplayNum
>
0
)
{
{
print
(
1
);
rdp
.
Show
(
bean
.
playNum
);
rdp
.
Show
(
bean
.
playNum
);
}
}
else
else
{
{
print
(
2
);
ToastPlugin
.
ToastHelper
.
ShowToast
(
"次数不足,明日再来吧"
);
ToastPlugin
.
ToastHelper
.
ShowToast
(
"次数不足,明日再来吧"
);
}
}
...
@@ -555,9 +554,6 @@ public class DialogControl : MonoBehaviour
...
@@ -555,9 +554,6 @@ public class DialogControl : MonoBehaviour
Debug
.
unityLogger
.
Log
(
"领取钻石 请求失败"
+
code
+
errMsg
);
Debug
.
unityLogger
.
Log
(
"领取钻石 请求失败"
+
code
+
errMsg
);
}));
}));
}
}
...
@@ -842,9 +838,9 @@ public class DialogControl : MonoBehaviour
...
@@ -842,9 +838,9 @@ public class DialogControl : MonoBehaviour
public
void
closeReceiveDiamondDialog
()
public
void
closeReceiveDiamondDialog
()
{
{
receivediamond
.
SetActive
(
false
);
receivediamond
.
SetActive
(
false
);
EventCenter
.
Broadcast
(
MyEventType
.
FlyDiamond
);
EventCenter
.
Broadcast
(
MyEventType
.
FlyDiamond
);
EventCenter
.
Broadcast
(
MyEventType
.
RefreshHomeInfo
);
EventCenter
.
Broadcast
(
MyEventType
.
RefreshHomeInfo
);
}
}
//签到奖励
//签到奖励
...
@@ -1033,6 +1029,8 @@ public class DialogControl : MonoBehaviour
...
@@ -1033,6 +1029,8 @@ public class DialogControl : MonoBehaviour
}
}
}
}
#
region
ShowClose
public
void
showTaoxinDialog
(
int
rewardcount
)
public
void
showTaoxinDialog
(
int
rewardcount
)
{
{
EventUtils
.
OnEvent
(
"happy_get_dialog"
);
EventUtils
.
OnEvent
(
"happy_get_dialog"
);
...
@@ -1229,6 +1227,7 @@ public class DialogControl : MonoBehaviour
...
@@ -1229,6 +1227,7 @@ public class DialogControl : MonoBehaviour
}));
}));
}
}
#
endregion
public
void
LookvideoGetDiamond
()
public
void
LookvideoGetDiamond
()
{
{
...
@@ -1236,10 +1235,12 @@ public class DialogControl : MonoBehaviour
...
@@ -1236,10 +1235,12 @@ public class DialogControl : MonoBehaviour
{
{
if
(
cb
)
if
(
cb
)
{
{
HttpTool
.
Instance
.
_Post
(
"app/v
1/wdlc/reward
/receive_diamond_by_video"
,
null
,
new
Action
<
RewardData
>((
bean
)
=>
HttpTool
.
Instance
.
_Post
(
"app/v
2/cscmnq
/receive_diamond_by_video"
,
null
,
new
Action
<
RewardData
>((
bean
)
=>
{
{
showReceiveDiamondDialog
(
PlayerDataControl
.
Instance
.
diamondByVideoRewardNum
.
ToString
());
//Lee
showReceiveDiamondDialog
(
DiamondplayNum
.
ToString
());
rdp
.
Hide
();
rdp
.
Hide
();
// EventCenter.Broadcast(MyEventType.UPDATE_CAR_LIST_DATA);
// EventCenter.Broadcast(MyEventType.UPDATE_CAR_LIST_DATA);
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
{
...
...
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