add b1
This commit is contained in:
parent
047d050b05
commit
d3b5c6a64e
@ -64,11 +64,15 @@ def sign(uri, data, a1, web_session):
|
||||
time.sleep(1)
|
||||
global_a1 = a1
|
||||
# 执行 JavaScript 函数
|
||||
# localStorage.getItem("b1")
|
||||
b1 = context_page.evaluate("() => localStorage.getItem('b1')")
|
||||
b1b1 = context_page.evaluate("() => localStorage.getItem('b1b1')")
|
||||
encrypt_params = context_page.evaluate("([url, data]) => window._webmsxyw(url, data)", [uri, data])
|
||||
return {
|
||||
"x-s": encrypt_params["X-s"],
|
||||
"x-t": str(encrypt_params["X-t"]),
|
||||
"encrypt_params": encrypt_params,
|
||||
"b1": b1,
|
||||
"b1b1": b1b1,
|
||||
}
|
||||
except Exception as e:
|
||||
print(f"Error during sign operation: {e}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user