From 3292333a4f9d2a412e371ff29589c79845fbf257 Mon Sep 17 00:00:00 2001 From: ManBun TimY Date: Mon, 27 Apr 2020 17:51:51 +0800 Subject: [PATCH] Update captcha.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 验证pow的时候带上 原始的生成难题的时候的难题列表. --- captcha.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/captcha.py b/captcha.py index 922db68..280a50a 100644 --- a/captcha.py +++ b/captcha.py @@ -135,10 +135,9 @@ def valid_captcha(self,tick_id,magic,pow_list) : if not magic == tick_status : return self.tick_valid_state.add_tick(tick_status) - + + valid_result = pow.valid_pow(pow_list, self.tick_pow_list.get_tick_data(tick_id)) self.tick_pow_list.remove_tick(tick_id) - - valid_result = pow.valid_pow(pow_list) if valid_result : return self.tick_valid_state.add_tick(tick_result.tick_state_success) @@ -185,4 +184,4 @@ def post(self) : captcha = captcha_valid() - \ No newline at end of file +