|
@@ -146,10 +146,10 @@ function init() {
|
|
|
|
|
|
if (port !== -1) {
|
|
if (port !== -1) {
|
|
logger.info('#####################predictorState:');
|
|
logger.info('#####################predictorState:');
|
|
- var accUrl = "http://127.0.0.1:" + port
|
|
|
|
var config = getRustConfig()
|
|
var config = getRustConfig()
|
|
-
|
|
|
|
- execSync(`curl -X GET -H "auth: ${config.headers.auth}" -H "token: ${config.headers.token}" "http://127.0.0.1:${port}/predictor_state"`, (error, stdout, stderr) => {
|
|
|
|
|
|
+ var com = `curl -X GET -H "auth: 4L" -H "token: r7T$8gBV!f&L@E2+" "http://127.0.0.1:${port}/predictor_state"`;
|
|
|
|
+ logger.info('#####################com:', com);
|
|
|
|
+ execSync(com, (error, stdout, stderr) => {
|
|
if (error) {
|
|
if (error) {
|
|
logger.info(`#####################汇报:获取状态请求失败: ${error.message}`)
|
|
logger.info(`#####################汇报:获取状态请求失败: ${error.message}`)
|
|
res.send({'code': -1, 'data': null, "message": `获取状态请求失败`});
|
|
res.send({'code': -1, 'data': null, "message": `获取状态请求失败`});
|