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
33548bdd
Commit
33548bdd
authored
Mar 20, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
23a0738f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
MapScene.ts
egret/src/mapScene/MapScene.ts
+2
-7
No files found.
egret/src/mapScene/MapScene.ts
View file @
33548bdd
...
...
@@ -55,16 +55,14 @@ export default class MapScene extends Scene {
private
icons
=
{};
private
actIcon
:
ActIcon
=
null
;
sendInvite
()
{
private
sendInvite
()
{
const
code
=
Utils
.
getRequestByKey
(
'shareCode'
)
||
Utils
.
getRequestByKey
(
'token'
);
//0224新加用token取一边
if
(
!
code
)
return
;
if
(
doHelpFlag
)
{
return
;
}
//0224修改,取sceneCode,
const
sceneCode
=
Utils
.
getRequestByKey
(
'sceneCode'
)
if
(
sceneCode
==
CodeChannels
.
AddBlood
)
{
//加体力的,0228到时会修改成助力,这里要加逻辑
//if (window["test0228"]) {//测试助力,到时失败code再和后端对接
if
(
sceneCode
==
CodeChannels
.
AddBlood
)
{
NetManager
.
ins
.
doHelpNew
((
s
,
res
)
=>
{
doHelpFlag
=
true
;
if
(
s
)
{
...
...
@@ -85,9 +83,6 @@ export default class MapScene extends Scene {
showToast
(
res
&&
codeMsgs
[
res
.
code
]
?
codeMsgs
[
res
.
code
]
:
"助力失败"
);
}
},
code
)
// } else {
// showToast("欢迎小主,闯关就能拿现金~");
// }
}
else
if
(
sceneCode
==
CodeChannels
.
RankPlay
)
{
//排行榜邀请好友的,不需要了
showToast
(
"欢迎加入游戏,去闯关吧"
);
...
...
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