Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
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
劳工
zeroing-libs
Commits
88363f1f
Commit
88363f1f
authored
Dec 26, 2019
by
XieChuanJin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试
parent
f6bae9d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
28 deletions
+74
-28
ShootPlanet.ts
src/custom/shoot-planet/ShootPlanet.ts
+1
-0
test.html
src/custom/shoot-planet/test.html
+68
-2
test.js
src/custom/shoot-planet/test.js
+3
-26
test.ts
src/custom/shoot-planet/test.ts
+2
-0
No files found.
src/custom/shoot-planet/ShootPlanet.ts
View file @
88363f1f
...
@@ -119,6 +119,7 @@ export class ShootPlanet extends engine.Container {
...
@@ -119,6 +119,7 @@ export class ShootPlanet extends engine.Container {
token
:
NetUtils
.
md5
(
this
.
startId
.
toString
()
+
seq
.
toString
()
+
score
.
toString
()
+
"qzBankRPW@dui88"
)
token
:
NetUtils
.
md5
(
this
.
startId
.
toString
()
+
seq
.
toString
()
+
score
.
toString
()
+
"qzBankRPW@dui88"
)
},
()
=>
{
},
()
=>
{
this
.
constantSubmitSeq
++
;
this
.
constantSubmitSeq
++
;
console
.
error
(
"submited"
,
this
.
constantSubmitSeq
);
this
.
needSubmitCount
--
;
this
.
needSubmitCount
--
;
this
.
isSubmiting
=
false
;
this
.
isSubmiting
=
false
;
...
...
src/custom/shoot-planet/test.html
View file @
88363f1f
...
@@ -33,17 +33,83 @@
...
@@ -33,17 +33,83 @@
outline
:
0px
;
outline
:
0px
;
visibility
:
hidden
;
visibility
:
hidden
;
}
}
/* 易盾css*/
.captcha
{
display
:
none
;
position
:
fixed
;
z-index
:
10000
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
background-color
:
rgba
(
0
,
0
,
0
,
0.6
);
}
.captcha
.neCaptcha-dialog
{
background-color
:
#fff
;
box-shadow
:
0
0
8px
0
rgba
(
0
,
0
,
0
,
0.35
);
-webkit-box-shadow
:
0
0
8px
0
rgba
(
0
,
0
,
0
,
0.35
);
position
:
absolute
;
left
:
50%
;
top
:
45%
;
-moz-transform
:
translate
(
-50%
,
-50%
);
-ms-transform
:
translate
(
-50%
,
-50%
);
-o-transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
-webkit-transform
:
translate
(
-50%
,
-50%
);
width
:
270px
;
height
:
134px
;
}
.captcha
.neCaptcha-dialog
::after
{
position
:
absolute
;
content
:
'单次游戏结束,请拖动滑块提交分数'
;
width
:
100%
;
height
:
30px
;
top
:
-40px
;
left
:
0
;
text-align
:
center
;
line-height
:
30px
;
font-size
:
16px
;
color
:
#ffff00
;
}
.captcha
.neCaptcha-dialog
::before
{
background-color
:
#fff
;
content
:
''
;
display
:
block
;
width
:
280px
;
height
:
144px
;
position
:
absolute
;
top
:
-5px
;
left
:
-5px
;
z-index
:
-1
;
}
</style>
</style>
</head>
</head>
<body>
<body>
<input
type=
"number"
id=
"inputNum"
>
<input
type=
"number"
id=
"inputNum"
>
<div
id=
"$CONTAINER_ID$"
style=
"line-height:0;font-size:0"
></div>
<div
id=
"$CONTAINER_ID$"
style=
"line-height:0;font-size:0"
></div>
<script
src=
"//yun.duiba.com.cn/db_games/activity/md5/zepto_security_downloadApp.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/activity/md5/security.js"
></script>
<!-- 易盾js -->
<script
type=
"text/javascript"
src=
"//cstaticdun.126.net/load.min.js"
></script>
<!-- <script>
var oHead = document.querySelector('body');
var oScript = document.createElement('script');
oScript.type = 'text/javascript';
oScript.src = '//yun.duiba.com.cn/webapp/js/vconsole.min.js';
oHead.appendChild(oScript);
oScript.onload = function () {
var vConsole = new VConsole();
}
</script> -->
<script
<script
src=
"http://yun.duiba.com.cn/editor/zeroing/libs/engine.
9a9dbfda4cb2dd5508ecddfe3d95dfd88063f7b5
.js"
></script>
src=
"http://yun.duiba.com.cn/editor/zeroing/libs/engine.
413e65cb3aaee3651d4817eb1ea7c6a8732e0438
.js"
></script>
$SCRIPTS$
$SCRIPTS$
<script>
<script>
//
engine.launch('//yun.duiba.com.cn/aurora/$VERSION$-data.json');
engine
.
launch
(
'//yun.duiba.com.cn/aurora/$VERSION$-data.json'
);
</script>
</script>
</body>
</body>
...
...
src/custom/shoot-planet/test.js
View file @
88363f1f
// 获取指定名称的cookie
let
labelMsg
=
new
engine
.
Label
();
function
getCookie
(
name
)
{
var
strcookie
=
document
.
cookie
;
//获取cookie字符串
var
arrcookie
=
strcookie
.
split
(
"; "
);
//分割
//遍历匹配
for
(
var
i
=
0
;
i
<
arrcookie
.
length
;
i
++
)
{
var
arr
=
arrcookie
[
i
].
split
(
"="
);
if
(
arr
[
0
]
==
name
)
{
return
arr
[
1
];
}
}
return
""
;
}
try
{
if
(
typeof
msg
!=
"string"
)
{
msg
=
typeof
msg
;
const
info
=
decodeURIComponent
(
getCookie
(
"dcustom"
));
console
.
error
(
info
);
if
(
info
.
split
(
"isConcern="
)[
1
]
&&
(
info
.
split
(
"isConcern="
)[
1
].
split
(
"&"
)[
0
])
==
"1"
)
{
next
(
"success"
);
}
else
{
next
(
"failed"
);
}
}
catch
(
e
)
{
console
.
error
(
e
);
}
}
\ No newline at end of file
src/custom/shoot-planet/test.ts
0 → 100644
View file @
88363f1f
let
errorMsg
=
args
&&
((
args
[
"desc"
]
||
args
[
"message"
])
||
((
args
[
"code"
]
&&
"network error:"
+
args
[
"code"
])
||
"network error"
))
||
"network error"
;
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