|
@@ -118,7 +118,7 @@ async function run(param) {
|
|
|
var dowHeaders = {...config.headers};
|
|
|
if (platform === 'win32') {
|
|
|
downloadFileWithPowerShell(
|
|
|
- config.dowbaseUrl + config.dowAppURL + '/?path=' + appName,
|
|
|
+ config.baseUrl + config.dowAppURL + '/?path=' + appName,
|
|
|
appPath + "/" + appName,
|
|
|
dowHeaders, (err, b) => {
|
|
|
if (err === null) {
|
|
@@ -132,7 +132,7 @@ async function run(param) {
|
|
|
});
|
|
|
} else {
|
|
|
downloadFileWithLinux(
|
|
|
- config.dowbaseUrl + config.dowAppURL + '/?path=' + appName,
|
|
|
+ config.baseUrl + config.dowAppURL + '/?path=' + appName,
|
|
|
appPath + "/" + appName,
|
|
|
dowHeaders, (err, b) => {
|
|
|
if (err === null) {
|
|
@@ -410,7 +410,7 @@ function downloadFileWithLinux(url, destination, headers, funBreak) {
|
|
|
function robotStatus(app) {
|
|
|
var config = getRustConfig()
|
|
|
var msg = (app.threadStatus !== RobotStatus.ERROR ? "完成" : app.errorMessage)
|
|
|
- http.request_post(`${config.baseUrl}/report/statusReport`, {
|
|
|
+ http.request_post(`${config.reportedUrl}/report/statusReport`, {
|
|
|
"robotId": app.id,
|
|
|
"status": app.threadStatus,
|
|
|
"msg": msg
|
|
@@ -434,7 +434,7 @@ function robotAmount(app) {
|
|
|
//余额有变动上报一次
|
|
|
// logger.info(`余额当前:${(app.nowBalance + "")}--${(d.now_balance + "")}--`);
|
|
|
if ((app.nowBalance + "") !== (d.now_balance + "")) {
|
|
|
- http.request_post(`${config.baseUrl}/report/amountReport`, {
|
|
|
+ http.request_post(`${config.reportedUrl}/report/amountReport`, {
|
|
|
"robotId": app.id,
|
|
|
"amount": d.now_balance
|
|
|
}, {...config.headers})
|