|
@@ -37,7 +37,7 @@ def _simple_captcha(file):
|
|
|
r = requests.post(url, headers=headers, files=files, stream=True, timeout=10)
|
|
|
rp_json = r.json()
|
|
|
if "msg" in rp_json and "success" == rp_json["msg"]:
|
|
|
- return str(rp_json["r"]["code"]).upper()
|
|
|
+ return str(rp_json["r"]["code"])
|
|
|
return None
|
|
|
|
|
|
|
|
@@ -48,7 +48,7 @@ def _arithmetic_captcha(file):
|
|
|
r = requests.post(url, headers=headers, files=files, stream=True, timeout=10)
|
|
|
json_resp = r.json()
|
|
|
if "msg" in json_resp and "success" == json_resp["msg"]:
|
|
|
- return str(json_resp["r"]["code"]).upper()
|
|
|
+ return str(json_resp["r"]["code"])
|
|
|
return None
|
|
|
|
|
|
|