소스 검색

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

dongzhaorui 2 년 전
부모
커밋
651db3b44e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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