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
a013cd42
Commit
a013cd42
authored
Aug 23, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d8f06f18
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+1
-1
box.tmproject
egret/resource/TextureMerger/box.tmproject
+1
-0
MainScene.ts
egret/src/mainScene/MainScene.ts
+1
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+20
-1
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
a013cd42
...
...
@@ -698,7 +698,7 @@ export class NetManager extends ABNetManager {
* @param {number} orderId 订单ID
* @param {number} prizeLevel 开奖等级,暂未开放
*/
public
getPlugOrderStatus
(
callback
:
Function
,
orderId
:
number
,
pollingCheck
:
Function
,
pollingCount
=
5
,
prizeLevel
?:
number
):
void
{
public
getPlugOrderStatus
(
callback
:
Function
,
orderId
:
number
,
pollingCheck
:
Function
,
pollingCount
=
10
,
prizeLevel
?:
number
):
void
{
const
net
:
INetData
=
{
name
:
'getPlugOrderStatus'
,
uri
:
'/plugin/getOrderStatus'
,
...
...
egret/resource/TextureMerger/box.tmproject
0 → 100644
View file @
a013cd42
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"box","version":5,"files":["../assets/box/boxbtn.png","../assets/box/boxbg.png"]}
\ No newline at end of file
egret/src/mainScene/MainScene.ts
View file @
a013cd42
...
...
@@ -2162,7 +2162,7 @@ export default class MainScene extends Scene {
}
},
submitData
.
prizeResponse
.
orderNum
,
()
=>
{
return
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
result
==
0
})
()
=>
{
return
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
result
==
0
})
;
}
else
{
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
NO_PRIZE_PANEL
,
{
starCount
:
this
.
scoreProgress
.
starCount
});
...
...
egret/src/mapScene/MapScene.ts
View file @
a013cd42
...
...
@@ -176,13 +176,32 @@ export default class MapScene extends Scene {
NetManager
.
ins
.
hc_openTreasureBox
((
success
)
=>
{
this
[
'box'
].
touchEnabled
=
true
;
if
(
success
)
{
const
boxdata
=
DataManager
.
ins
.
getData
(
'hc_openTreasureBox'
).
data
;
const
homeData
=
DataManager
.
ins
.
getData
(
'hc_home'
).
data
;
homeData
.
canReceiveTreasureBoxNum
=
boxdata
.
canReceiveTreasureBoxNum
;
homeData
.
nextRangeStarsNum
=
boxdata
.
nextRangeStarsNum
;
homeData
.
totalStarts
=
boxdata
.
totalStarts
;
this
.
updateBox
();
PanelCtrl
.
instance
.
show
(
'box'
);
const
data
=
DataManager
.
ins
.
getData
(
'hc_openTreasureBox'
).
data
;
NetManager
.
ins
.
getPlugOrderStatus
((
s
)
=>
{
if
(
s
)
{
const
data
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
);
//区分奖品
if
(
data
.
lottery
)
{
PanelCtrl
.
instance
.
show
(
'box'
);
}
else
{
showToast
(
'您与奖品擦肩而过~'
);
}
}
else
{
showToast
(
'您与奖品擦肩而过~'
);
}
},
data
.
orderNum
,
()
=>
{
return
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
result
==
0
});
}
})
// }
...
...
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