Commit e3e6504a authored by wang's avatar wang

f9 验票

parent b97023b5
This diff is collapsed.
This diff is collapsed.
......@@ -70,7 +70,7 @@ class PxBypass {
"accept-language": "en-US,en;q=0.9",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded",
"origin": "https://www.flyfrontier.com",
"origin": "https://www.spirit.com",
"pragma": "no-cache",
"user-agent": this.ua
}
......@@ -125,7 +125,7 @@ class PxBypass {
'brush_proxy': this.prox,
'brush_mode': 'shopping',
'brush_name': 'js0',
'brush_type': 'cookieF9',
'brush_type': 'cookieNK',
}));
this.log.debug(res.data)
......@@ -133,6 +133,13 @@ class PxBypass {
async do_collector(data) {
try {
for (let i = 0; i < data.length; i++) {
let n = data[i];
n.d['PX11645'] = this.url;
n.d[ "PX11379"] = true;
}
console.log(JSON.stringify(data))
// if (typeof data === 'object') {
// data = ht(data)
// }
......@@ -432,11 +439,12 @@ 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 = {
// status: 0
// }
let data = res.data;
// let res = await axios.get('http://ymx-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test')
// let data = res.data;
let data = {
status: 0
}
console.log(data)
// if r.json()['status'] != 0:
// # logger.debug(f'不需要刷值')
......@@ -450,7 +458,7 @@ async function run() {
await px.step1()
// await px.test()
await px.step2()
// await px.step2()
// await sleep(1500)
......
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