refilcplus things

This commit is contained in:
Kima 2024-03-03 20:14:39 +01:00
parent a356f5db64
commit d3c1941c59

View File

@ -150,15 +150,18 @@ class PremiumAuth {
if (kDebugMode) print(res.body);
if (res.body == "") throw "empty body";
if (res.body == "Unauthorized") {
throw "User is not autchenticated to Github!";
}
if (res.body == "empty_sponsors") {
throw "This user isn't sponsoring anyone currently!";
}
// if (res.body == "Unauthorized") {
// throw "User is not autchenticated to Github!";
// }
// if (res.body == "empty_sponsors") {
// throw "This user isn't sponsoring anyone currently!";
// }
if (res.body == "expired_subscription") {
throw "This user isn't a subscriber anymore!";
}
if (res.body == "no_subscription") {
throw "This user isn't a subscriber!";
}
final premium = PremiumResult.fromJson(jsonDecode(res.body) as Map);