Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
01ca9a8e
Commit
01ca9a8e
authored
Jan 08, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
27e06b4d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
10 deletions
+23
-10
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+1
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+2
-2
getBackReward.json
mock/happyclear/getBackReward.json
+15
-2
hasBackReward.json
mock/happyclear/hasBackReward.json
+5
-5
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
01ca9a8e
...
...
@@ -1000,7 +1000,7 @@ export class NetManager extends ABNetManager {
this
.
send
(
net
);
}
public
hc_hasBackReward
(
callback
:
Function
):
void
{
const
d
:
any
=
{
};
const
d
:
any
=
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
};
const
net
:
INetData
=
{
name
:
'hc_hasBackReward'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/hasBackReward'
,
...
...
egret/src/mapScene/MapScene.ts
View file @
01ca9a8e
...
...
@@ -185,7 +185,7 @@ export default class MapScene extends Scene {
}
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
if
(
signInfoVO
&&
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
if
(
signInfoVO
.
todaySigned
==
0
&&
oldTimerStr
!=
nowTimerStr
)
{
panels
.
push
(
'sign'
);
localStorage
.
setItem
(
'nowTimerStr'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr
);
...
...
@@ -439,7 +439,7 @@ export default class MapScene extends Scene {
updateSign
()
{
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
if
(
signInfoVO
&&
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
this
[
'sign_s1'
].
visible
=
signInfoVO
.
todaySigned
==
0
;
this
[
'sign_s2'
].
visible
=
!
this
[
'sign_s1'
].
visible
;
}
else
{
...
...
mock/happyclear/getBackReward.json
View file @
01ca9a8e
{
"code"
:
"0000000000"
,
"data"
:
1
,
"data"
:{
"appItemId"
:
2322
,
"categoryType"
:
2
,
"coinType"
:
1
,
"img"
:
"1"
,
"maxValue"
:
2
,
"minValue"
:
1
,
"name"
:
"测试商品"
,
"num"
:
3
,
"propType"
:
2
,
"rate"
:
"概率"
,
"title"
:
"商品信息"
,
"value"
:
"虚拟商品标识符"
},
"desc"
:
"OK"
,
"success"
:
1
,
"success"
:
true
,
"timestamp"
:
1572079274940
}
\ No newline at end of file
mock/happyclear/hasBackReward.json
View file @
01ca9a8e
{
"
code"
:
"0000000000"
,
"
data"
:
null
,
"desc"
:
"OK
"
,
"
success"
:
1
,
"
timestamp"
:
1572079274940
"
success"
:
1
,
"
code"
:
"600074"
,
"desc"
:
"用户未达到回归奖励领取条件
"
,
"
timestamp"
:
157847249642
1
,
"
data"
:
null
}
\ No newline at end of file
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