restore: 恢复 11-06~11-09 本地未提交改动
- libs: 新增 hr_sdk / hotel_report / dingtalk,更新 desktopauto - controlplane-next: SDK 管理模块(controller/entity/migrations)与前端视图 - electron-shell: 插件同步、注册表、runner 调整 - plugins: XQ0035/XQ0041/XQ0042/XQ0045_XQ0046/XQ0048/XQ0076/XQ0078 等版本更新 - tests/tools: 新增 SDK 兼容性检查与打包工具(sdk_pack.py、sdk_compat_check.py)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""临时验证:故意提交错误验证码,看服务端错误码,用于区分「验证码错」和「密码错」(用完即删)。"""
|
||||
import json
|
||||
import sys
|
||||
|
||||
if hasattr(sys.stdout, "reconfigure"):
|
||||
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
||||
|
||||
import tianque_login_test as m
|
||||
|
||||
URL_NEW = "/management/easypay/api/user/transForm/login"
|
||||
|
||||
s = m.new_session()
|
||||
key, img = m.fetch_captcha(s)
|
||||
print("imageKey =", key)
|
||||
|
||||
for url, label in ((URL_NEW, "transForm/login"), (m.URL_LOGIN, "bankLogin/loginByAccount")):
|
||||
resp = m.post_json(s, url, {
|
||||
"loginAcc": m.ACCOUNT,
|
||||
"loginPwd": m.enc_password(m.PASSWORD),
|
||||
"imageCode": "0000",
|
||||
"imageKey": key,
|
||||
})
|
||||
print(f"[{label}] 错误验证码 -> {json.dumps(resp, ensure_ascii=False)[:300]}")
|
||||
key, img = m.fetch_captcha(s)
|
||||
Reference in New Issue
Block a user