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
061364c8
Commit
061364c8
authored
May 20, 2021
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
天天提现判断看了广告才给奖励
parent
428e18e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
EveryDayControl.cs
Assets/Game/Main/Scripts/View/EveryDayControl.cs
+8
-3
No files found.
Assets/Game/Main/Scripts/View/EveryDayControl.cs
View file @
061364c8
...
@@ -62,11 +62,14 @@ public class EveryDayControl : MonoBehaviour
...
@@ -62,11 +62,14 @@ public class EveryDayControl : MonoBehaviour
public
void
videoGetHeart
(
int
sid
)
public
void
videoGetHeart
(
int
sid
)
{
{
AdUtils
.
PlayRewardAd
(
"rewardVideo_dayCash"
,
new
Action
<
bool
>((
adEntity
)
=>
AdUtils
.
PlayRewardAd
(
"rewardVideo_dayCash"
,
new
Action
<
bool
>((
adEntity
)
=>
{
{
if
(
adEntity
)
{
EventUtils
.
OnEvent
(
"rewardVideo_dayCash"
,
"激励视频_天天提现领取红心"
);
EventUtils
.
OnEvent
(
"rewardVideo_dayCash"
,
"激励视频_天天提现领取红心"
);
EventUtils
.
OnEvent
(
"rewardVideo_all"
,
"激励视频_天天提现领取红心"
);
EventUtils
.
OnEvent
(
"rewardVideo_all"
,
"激励视频_天天提现领取红心"
);
Dictionary
<
string
,
object
>
parameters
=
new
Dictionary
<
string
,
object
>();
Dictionary
<
string
,
object
>
parameters
=
new
Dictionary
<
string
,
object
>();
Debug
.
Log
(
"Adcode"
+
AdUtils
.
getCurrentAdEntity
().
codeId
);
Debug
.
Log
(
"Adcode"
+
AdUtils
.
getCurrentAdEntity
().
codeId
);
parameters
.
Add
(
"adCode"
,
AdUtils
.
getCurrentAdEntity
().
codeId
);
parameters
.
Add
(
"adCode"
,
AdUtils
.
getCurrentAdEntity
().
codeId
);
parameters
.
Add
(
"id"
,
sid
);
parameters
.
Add
(
"id"
,
sid
);
HttpTool
.
Instance
.
_Get
(
"app/v1/game/module/receiveHearts"
,
parameters
,
HttpTool
.
Instance
.
_Get
(
"app/v1/game/module/receiveHearts"
,
parameters
,
...
@@ -75,11 +78,13 @@ public class EveryDayControl : MonoBehaviour
...
@@ -75,11 +78,13 @@ public class EveryDayControl : MonoBehaviour
if
(
null
!=
result
)
if
(
null
!=
result
)
{
{
//TODO 弹出弹窗
//TODO 弹出弹窗
showGetRedHeartDialog
(
result
.
awardCoins
);
showGetRedHeartDialog
(
result
.
awardCoins
);
// showHappyDialog(result.awardCoins);
// showHappyDialog(result.awardCoins);
getHeartList
();
getHeartList
();
}
}
}),
new
Action
<
string
,
string
>((
code
,
mes
)
=>
{
}));
}),
new
Action
<
string
,
string
>((
code
,
mes
)
=>
{
}));
}
}));
}));
...
...
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