Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2026-01-02 12:05:31 +08:00
parent 80e007bac6
commit 041af37bb0
67 changed files with 775 additions and 838 deletions

View File

@@ -109,10 +109,10 @@ class GeetestWebviewDialog extends StatelessWidget {
},
onLoadStop: (ctr, _) async {
final config = await future;
if (config.isSuccess) {
if (config case Success(:final response)) {
ctr.evaluateJavascript(
source:
'let t=Geetest(${config.data}).onSuccess(()=>R("success",t.getValidate())).onError((o)=>R("error",o));t.onReady(()=>t.verify());',
'let t=Geetest($response).onSuccess(()=>R("success",t.getValidate())).onError((o)=>R("error",o));t.onReady(()=>t.verify());',
);
} else {
config.toast();