Commit 7ea6f051 authored by wang's avatar wang

111

parent dfd29792
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -262,7 +262,7 @@ while True: ...@@ -262,7 +262,7 @@ while True:
# '_id': token, # '_id': token,
# 'update_time': int(time.time() * 1000) # 'update_time': int(time.time() * 1000)
# }) # })
code = open('src.js', 'r', encoding='utf-8').read() code = open('src2.js', 'r', encoding='utf-8').read()
with open('src_run2.js', 'w', encoding='utf-8') as f: with open('src_run2.js', 'w', encoding='utf-8') as f:
f.write(code + '\n\n' + get_random_location() + ';;' + c f.write(code + '\n\n' + get_random_location() + ';;' + c
+ +
...@@ -314,7 +314,7 @@ setTimeout(r=> { ...@@ -314,7 +314,7 @@ setTimeout(r=> {
# p = subprocess.Popen(['node', 'js_dom_run1.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, # p = subprocess.Popen(['node', 'js_dom_run1.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run_chrome_105.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE, # p = subprocess.Popen(['node', 'src_run_chrome_105.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run_company_chrome.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE, # p = subprocess.Popen(['node', 'src_run_company_chrome.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
p = subprocess.Popen(['node', 'src_run1.js', selectId, '11', token, proxy], stdin=subprocess.PIPE, stdout=subprocess.PIPE, p = subprocess.Popen(['node', 'src_run2.js', selectId, '11', token, proxy], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE) stderr=subprocess.PIPE)
output, err = p.communicate(timeout=10) output, err = p.communicate(timeout=10)
tmp = '' tmp = ''
......
No preview for this file type
No preview for this file type
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