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
34e797e3
Commit
34e797e3
authored
Dec 25, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
晚上代码同步服务
parent
b9a5f08a
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2721 additions
and
2064 deletions
+2721
-2064
shoot-planet.json
dist/customs/shoot-planet.json
+1
-1
http-request.json
dist/processes/net/http-request.json
+1
-2
types.d.ts
libs/types.d.ts
+2715
-2058
index.ts
src/process/net/http-request/index.ts
+2
-2
meta.json
src/process/net/http-request/meta.json
+1
-1
zeroing-temp.ts
src/zeroing-temp.ts
+1
-0
No files found.
dist/customs/shoot-planet.json
View file @
34e797e3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/processes/net/http-request.json
View file @
34e797e3
...
...
@@ -36,11 +36,10 @@
},
"output"
:
[
"success"
,
"failed"
,
"exception"
],
"id"
:
"http-request"
,
"script"
:
"var url = engine.findVariable('url', args, props);
\n
var type = engine.findVariable('type', args, props);
\n
var params = engine.findVariable('params', args, props);
\n
var headers = engine.findVariable('headers', args, props);
\n
if (!url) {
\n
console.log('url is empty');
\n
next('exception', '
\\
'url is empty
\\
'');
\n
}
\n
else {
\n
engine.httpRequest(url, props.method, params, type, headers)
\n
.then(function (data) {
\n
next('success', data);
\n
}, function (err) {
\n
next('failed
', err);
\n
});
\n
}
\n
"
,
"script"
:
"var url = engine.findVariable('url', args, props);
\n
var type = engine.findVariable('type', args, props);
\n
var params = engine.findVariable('params', args, props);
\n
var headers = engine.findVariable('headers', args, props);
\n
if (!url) {
\n
console.log('url is empty');
\n
next('exception', '
url is empty');
\n
}
\n
else {
\n
engine.httpRequest(url, props.method, params, type, headers)
\n
.then(function (data) {
\n
next('success', data);
\n
}, function (err) {
\n
next('exception
', err);
\n
});
\n
}
\n
"
,
"group"
:
"net"
,
"type"
:
"builtin"
}
libs/types.d.ts
View file @
34e797e3
This diff is collapsed.
Click to expand it.
src/process/net/http-request/index.ts
View file @
34e797e3
...
...
@@ -9,7 +9,7 @@ const headers = engine.findVariable('headers', args, props);
if
(
!
url
)
{
console
.
log
(
'url is empty'
);
next
(
'exception'
,
'
\'
url is empty
\'
'
);
next
(
'exception'
,
'
url is empty
'
);
}
else
{
engine
.
httpRequest
(
url
,
props
.
method
,
params
,
type
,
headers
)
.
then
(
...
...
@@ -17,7 +17,7 @@ if (!url) {
next
(
'success'
,
data
);
},
err
=>
{
next
(
'
failed
'
,
err
);
next
(
'
exception
'
,
err
);
}
);
}
src/process/net/http-request/meta.json
View file @
34e797e3
...
...
@@ -8,5 +8,5 @@
"params"
:
{
"type"
:
"map"
,
"alias"
:
"参数"
},
"headers"
:
{
"type"
:
"map"
,
"alias"
:
"头部"
}
},
"output"
:
[
"success"
,
"
failed"
,
"
exception"
]
"output"
:
[
"success"
,
"exception"
]
}
\ No newline at end of file
src/zeroing-temp.ts
0 → 100644
View file @
34e797e3
console
.
log
(
args
);
\ No newline at end of file
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