mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: get blockserver
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -491,11 +491,14 @@ class RequestUtils {
|
||||
token: captchaData.token,
|
||||
validate: captchaData.validate,
|
||||
);
|
||||
if (res['status'] && res['data']?['is_valid'] == 1) {
|
||||
// onSuccess(captchaData.token!);
|
||||
final griskId = res['data']?['grisk_id'];
|
||||
if (griskId != null) {
|
||||
onSuccess(griskId);
|
||||
if (res['status']) {
|
||||
if (res['data']?['is_valid'] == 1) {
|
||||
final griskId = res['data']?['grisk_id'];
|
||||
if (griskId != null) {
|
||||
onSuccess(griskId);
|
||||
}
|
||||
} else {
|
||||
SmartDialog.showToast('invalid');
|
||||
}
|
||||
} else {
|
||||
SmartDialog.showToast(res['msg']);
|
||||
|
||||
Reference in New Issue
Block a user