refilcplus things
This commit is contained in:
parent
a356f5db64
commit
d3c1941c59
@ -150,15 +150,18 @@ class PremiumAuth {
|
|||||||
if (kDebugMode) print(res.body);
|
if (kDebugMode) print(res.body);
|
||||||
|
|
||||||
if (res.body == "") throw "empty body";
|
if (res.body == "") throw "empty body";
|
||||||
if (res.body == "Unauthorized") {
|
// if (res.body == "Unauthorized") {
|
||||||
throw "User is not autchenticated to Github!";
|
// throw "User is not autchenticated to Github!";
|
||||||
}
|
// }
|
||||||
if (res.body == "empty_sponsors") {
|
// if (res.body == "empty_sponsors") {
|
||||||
throw "This user isn't sponsoring anyone currently!";
|
// throw "This user isn't sponsoring anyone currently!";
|
||||||
}
|
// }
|
||||||
if (res.body == "expired_subscription") {
|
if (res.body == "expired_subscription") {
|
||||||
throw "This user isn't a subscriber anymore!";
|
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);
|
final premium = PremiumResult.fromJson(jsonDecode(res.body) as Map);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user