提交验证码拉去类别问题

pull/4/head
wenxianping 2018-01-11 15:43:00 +08:00
parent 1d3a7867d5
commit 53f030537d
2 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ class select:
for i in range(3):
if is_node_code:
print("需要验证码,正在使用自动识别验证码功能")
codeimg = 'https://kyfw.12306.cn/otn/passcodeNew/getPassCodeNew?module=login&rand=sjrand&%s' % random.random()
codeimg = 'https://kyfw.12306.cn/otn/passcodeNew/getPassCodeNew?module=passenger&rand=sjrand&%s' % random.random()
result = myurllib2.get(codeimg)
img_path = './tkcode'
open(img_path, 'wb').write(result)

BIN
tkcode

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 15 KiB