MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / checkVCode

Function checkVCode

backup/sysxc.py:126–147  ·  view source on GitHub ↗

验证

(pointJson, token)

Source from the content-addressed store, hash-verified

124
125
126def checkVCode(pointJson, token):
127 """验证"""
128 try:
129 data = {
130 "captchaType": "blockPuzzle",
131 "pointJson": pointJson,
132 "token": token
133 }
134
135 url = 'https://scrm-prod.shuyi.org.cn/saas-gateway/api/agg-trade/v1/signIn/checkVCode'
136 response = requests.post(url, json=data, headers=headers)
137 result = response.json()
138 resultCode = result['resultCode']
139 resultMsg = result['resultMsg']
140 if resultCode == '0000':
141 logger.info(f"校验结果:成功")
142 else:
143 logger.info(f"校验结果: {resultMsg}")
144 time.sleep(3)
145 main()
146 except Exception as err:
147 print(err)
148
149
150def check_sign(pointJson):

Callers 1

mainFunction · 0.85

Calls 5

sleepMethod · 0.80
mainFunction · 0.70
printFunction · 0.50
postMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected