Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game2048
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
熊东起
game2048
Commits
4043dbc1
Commit
4043dbc1
authored
Apr 24, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
328e5514
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
commonNet.ts
src/commonNet.ts
+9
-2
No files found.
src/commonNet.ts
View file @
4043dbc1
...
@@ -25,7 +25,13 @@ export enum PropType {
...
@@ -25,7 +25,13 @@ export enum PropType {
* @param id
* @param id
* @param isFinal 是否最终提交,默认是的
* @param isFinal 是否最终提交,默认是的
*/
*/
export
function
submit
(
callback
:
(
s
:
boolean
,
res
?:
any
)
=>
void
,
score
:
number
,
grade
:
number
,
isFinal
:
boolean
=
true
)
{
export
function
submit
(
callback
:
(
s
:
boolean
,
res
?:
any
)
=>
void
,
score
:
number
,
grade
:
number
,
isFinal
:
boolean
=
true
,
hideMsg
:
boolean
=
false
)
{
sendTbNet
(
sendTbNet
(
TbNetName
.
submit
,
TbNetName
.
submit
,
{
{
...
@@ -37,7 +43,8 @@ export function submit(callback: (s: boolean, res?: any) => void, score: number,
...
@@ -37,7 +43,8 @@ export function submit(callback: (s: boolean, res?: any) => void, score: number,
},
},
(
s
,
res
)
=>
{
(
s
,
res
)
=>
{
callback
(
s
,
res
)
callback
(
s
,
res
)
}
},
hideMsg
)
)
}
}
...
...
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