Forráskód Böngészése

update:删除验证码识别结果字符串转大写

dongzhaorui 2 éve
szülő
commit
651db3b44e
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      FworkSpider/untils/get_imgcode.py

+ 2 - 2
FworkSpider/untils/get_imgcode.py

@@ -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