Commit 92dd977b authored by wang's avatar wang

添加环境提取

parent 4b360d8d
import log4js from 'log4js'
import qs from 'qs'
import {genPc, genUuid, ie, randint} from "./utils.js"
import {genUuid, ie, randint} from "./utils.js"
import axios from "axios";
import {encodePayload} from './encodepayload.js'
import {PxEnv} from './px.js'
import * as fs from "fs";
import {getPayload} from "./all.js";
......@@ -145,7 +143,7 @@ class PxBypass {
// body = this.updateBody(body);
let body = getPayload(this.uuid, this.vid, this.sid, this.px755, this.ts, this.cts, data, undefined,this.appId,this.tag,this.ft)
let body = getPayload(this.uuid, this.vid, this.sid, this.px755, this.ts, this.cts, data, undefined, this.appId, this.tag, this.ft)
// this.log.info(body)
let res = await axios.post(this.tlsUrl, JSON.stringify({
......@@ -355,6 +353,8 @@ class PxBypass {
}
async function run() {
while (true) {
try {
let res = await axios.get('http://ymx-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test')
let data = res.data;
// if r.json()['status'] != 0:
......@@ -391,7 +391,7 @@ async function run() {
await sleep(1000)
} catch (e) {
console.log(e)
}finally {
} finally {
await sleep(1000)
}
......@@ -399,12 +399,17 @@ async function run() {
}
await sleep(10000)
} catch (e) {
console.log(e)
}finally {
await sleep(1000)
}
}
// }
}
while (true){
run();
}
run();
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