Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
console
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
console
Commits
c6a497f9
Commit
c6a497f9
authored
May 02, 2017
by
nano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
close arira2 socket when download complete
parent
8e966782
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
70 deletions
+55
-70
.idea/workspace.xml
.idea/workspace.xml
+48
-66
migrate.ts
migrate.ts
+5
-4
src/routes/upload.ts
src/routes/upload.ts
+2
-0
No files found.
.idea/workspace.xml
View file @
c6a497f9
This diff is collapsed.
Click to expand it.
migrate.ts
View file @
c6a497f9
...
...
@@ -9,6 +9,8 @@ const locales = ['zh-CN', 'zh-TW', 'en-US', 'ja-JP'];
const
languagePack
=
[
'
zh-CN
'
,
'
en-US
'
];
const
platforms
=
[
'
win32
'
,
'
darwin
'
];
let
wait
=
ms
=>
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
ms
));
const
lang
=
{
'
en-US
'
:
{
'
en-US
'
:
'
English
'
,
...
...
@@ -124,10 +126,9 @@ async function main() {
for
(
let
i
=
0
,
t
=
0
;
i
<=
data
.
length
;
i
++
,
t
+=
60000
)
{
let
app
=
data
[
i
];
if
(
!
[
'
ygopro
'
,
'
desmume
'
,
'
test
'
].
includes
(
app
[
'
id
'
]))
{
setTimeout
(
async
()
=>
{
console
.
log
(
`正在处理
${
app
[
'
id
'
]}
`
);
await
updateApp
(
app
);
},
t
);
await
wait
(
t
);
console
.
log
(
`正在处理
${
app
[
'
id
'
]}
`
);
await
updateApp
(
app
);
}
}
}
catch
(
e
)
{
...
...
src/routes/upload.ts
View file @
c6a497f9
...
...
@@ -190,12 +190,14 @@ const uploadPackageUrl = async (ctx: Context) => {
pack
!
.
status
=
'
failed
'
;
await
pack
!
.
save
();
}
await
downloader
.
close
()
};
downloader
.
onDownloadError
=
async
(
err
)
=>
{
// console.log(await downloader.send('tellStatus', err.gid))
pack
!
.
status
=
'
failed
'
;
await
pack
!
.
save
();
await
downloader
.
close
()
console
.
log
(
err
);
};
...
...
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