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