diff --git a/lib/api/ap_helper.dart b/lib/api/ap_helper.dart index 7b249ef9..008bac96 100644 --- a/lib/api/ap_helper.dart +++ b/lib/api/ap_helper.dart @@ -145,7 +145,7 @@ class WebApHelper { Helper.username = username; Helper.password = password; final int code = WebApParser.instance.apLoginParser(res.data); - switch (WebApParser.instance.apLoginParser(res.data)) { + switch (code) { case -1: //Captcha error, go retry. break;