Surplus_Up (2DU) 7 лет назад
Родитель
Сommit
94f9dfc850
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      func.py

+ 2 - 1
func.py

@@ -127,7 +127,8 @@ def captcha_post(re_data, num = 1):
             curs.execute('select data from other where name = "sec_re"')
             curs.execute('select data from other where name = "sec_re"')
             sec_re = curs.fetchall()
             sec_re = curs.fetchall()
             if sec_re and sec_re[0][0] != '':
             if sec_re and sec_re[0][0] != '':
-                data = urllib.request.urlopen('https://www.google.com/recaptcha/api/siteverify?secret=' + sec_re + '&response=' + re_data).read()
+                data = urllib.request.urlopen('https://www.google.com/recaptcha/api/siteverify?secret=' + sec_re[0][0] + '&response=' + re_data).read()
+                print(data)
                 if not data:
                 if not data:
                     return 0
                     return 0
                 else:
                 else: