Commit ea0f0552 authored by 李尚科's avatar 李尚科

add huayun paas call data

parent 778e25ca
Pipeline #12321 passed with stage
in 4 seconds
......@@ -189,7 +189,7 @@ class HomeController extends Controller {
const { ctx } = this;
const accessToken = await this.getAccessToken();
// this.callIn(accessToken);
this.callOut(accessToken);
// this.callOut(accessToken);
ctx.success({ status: true });
}
......@@ -202,7 +202,7 @@ class HomeController extends Controller {
const accessToken = '8091d5922082e808c601c424bad0b9f2';
const start = 0;
const limit = 100;
const url = `http://221.194.132.83:7780/paas/Interface/${accessToken}/CallOut`;
const url = `http://221.194.132.83:7780/paas/Interface/${accessToken}/CallIn`;
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']] });
ctx.success({ status: result2 });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment