Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
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
方斌
51business
Commits
ea0f0552
Commit
ea0f0552
authored
Aug 15, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add huayun paas call data
parent
778e25ca
Pipeline
#12321
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
home.js
app/controller/home.js
+2
-2
No files found.
app/controller/home.js
View file @
ea0f0552
...
@@ -189,7 +189,7 @@ class HomeController extends Controller {
...
@@ -189,7 +189,7 @@ class HomeController extends Controller {
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
const
accessToken
=
await
this
.
getAccessToken
();
const
accessToken
=
await
this
.
getAccessToken
();
// this.callIn(accessToken);
// this.callIn(accessToken);
this
.
callOut
(
accessToken
);
//
this.callOut(accessToken);
ctx
.
success
({
status
:
true
});
ctx
.
success
({
status
:
true
});
}
}
...
@@ -202,7 +202,7 @@ class HomeController extends Controller {
...
@@ -202,7 +202,7 @@ class HomeController extends Controller {
const
accessToken
=
'8091d5922082e808c601c424bad0b9f2'
;
const
accessToken
=
'8091d5922082e808c601c424bad0b9f2'
;
const
start
=
0
;
const
start
=
0
;
const
limit
=
100
;
const
limit
=
100
;
const
url
=
`http://221.194.132.83:7780/paas/Interface/
${
accessToken
}
/Call
Out
`
;
const
url
=
`http://221.194.132.83:7780/paas/Interface/
${
accessToken
}
/Call
In
`
;
const
result2
=
await
ctx
.
curl
(
url
,
{
method
:
'POST'
,
contentType
:
'json'
,
dataType
:
'json'
,
timing
:
true
,
timeout
:
50000
,
data
:
{
start_time
,
end_time
,
start
,
limit
}
});
const
result2
=
await
ctx
.
curl
(
url
,
{
method
:
'POST'
,
contentType
:
'json'
,
dataType
:
'json'
,
timing
:
true
,
timeout
:
50000
,
data
:
{
start_time
,
end_time
,
start
,
limit
}
});
// const last_one = await ctx.prometheusModel.HuayunPaasCallin.findOne({ order: [['id', 'desc']] });
// const last_one = await ctx.prometheusModel.HuayunPaasCallin.findOne({ order: [['id', 'desc']] });
ctx
.
success
({
status
:
result2
});
ctx
.
success
({
status
:
result2
});
...
...
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