Commit 45b6f0eb authored by wangmingming's avatar wangmingming

111

parent 687c538e
......@@ -295,53 +295,53 @@ class PxBypass {
//
// let data = [{
// "t": "PX11940",
// "d": {
// "PX11379": false,
// "PX12307": "PX11745",
// "PX11668": "pxhc",
// "PX12348": false,
// "PX11645": "https://booking.flyfrontier.com/Flight/Select"
// }
// }]
//
// if (typeof data === 'object') {
// data = JSON.stringify(data)
// }
// this.log.info(data)
// let payload = encodePayload(data, this.uuid, this.ts)
// let pc = genPc(data, `${this.uuid}:${this.tag}:${this.ft}`)
// let body = {
// "appId": this.appId,
// "tag": this.tag,
// "uuid": this.uuid,
// "ft": this.ft,
// "seq": this.seq,
// "en": "NTA",
// "pc": pc,
// "rsc": this.rsc,
// "payload": payload,
// }
// body = this.updateBody(body);
//
//
// let res = await axios.post(this.tlsUrl, JSON.stringify({
// url: "https://collector-PXVb73hTEg.px-client.net/b/g" + "?" + qs.stringify(body),
// // data: ,
// method: "GET",
// headers: this.pxHeaders,
// allow_redirects: true,
// debug: true,
// proxy: this.prox,
// id: "2"
// }));
// // let inRes = JSON.parse(res.data)
// this.log.info(res.data)
let data = [{
"t": "PX11940",
"d": {
"PX11379": false,
"PX12307": "PX11745",
"PX11668": "pxhc",
"PX12348": false,
"PX11645": "https://booking.flyfrontier.com/Flight/Select"
}
}]
if (typeof data === 'object') {
data = JSON.stringify(data)
}
this.log.info(data)
let payload = encodePayload(data, this.uuid, this.ts)
let pc = genPc(data, `${this.uuid}:${this.tag}:${this.ft}`)
let body = {
"appId": this.appId,
"tag": this.tag,
"uuid": this.uuid,
"ft": this.ft,
"seq": this.seq,
"en": "NTA",
"pc": pc,
"rsc": this.rsc,
"payload": payload,
}
body = this.updateBody(body);
let res = await axios.post(this.tlsUrl, JSON.stringify({
url: "https://collector-PXVb73hTEg.px-client.net/b/g" + "?" + qs.stringify(body),
// data: ,
method: "GET",
headers: this.pxHeaders,
allow_redirects: true,
debug: true,
proxy: this.prox,
id: "2"
}));
// let inRes = JSON.parse(res.data)
this.log.info(res.data)
// this.parseRes(inRes)
// this.seq++;
// this.rsc++;
this.seq++;
this.rsc++;
let data1 = [{"t": "PX12167", "d": {"PX11648": true}}]
......@@ -359,7 +359,9 @@ class PxBypass {
this.startTs, this.startTs2, this.performanceNow, this.px12280,
this.px755, this.token, this.token2, this.hash, this.hash2, this.hashv)
this.pxenv.cap = true
let data = [this.pxenv.get_px11590(), this.pxenv.get_px11796()]
let data = [this.pxenv.get_px11590()
// , this.pxenv.get_px11796()
]
// data.push({
// "t": "PX11796",
// "d": {
......
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