同步代码

This commit is contained in:
wyf
2025-07-18 15:20:50 +08:00
parent 594b1f31e0
commit 128641184c
4 changed files with 14 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ class WebviewTestController extends GetControllerEx<WebviewTestModel> {
WebviewTestController() : super(WebviewTestModel()) {
web = WebviewHelper(
isheadless: false,
isheadless: true,
jsbridge: buildsdk(
// father: this,
// clientId: '494641114',
@@ -44,9 +44,9 @@ class WebviewTestController extends GetControllerEx<WebviewTestModel> {
params: PlatformHeadlessInAppWebViewCreationParams(
onLoadStop: (controller, url) {
setState(() => ready.value = true);
MHTHomeController deviceController = Get.find();
web.jsbridge!.dart
.updateDeviceList(deviceController.deviceList.values);
// MHTHomeController deviceController = Get.find();
// web.jsbridge!.dart
// .updateDeviceList(deviceController.deviceList.values);
},
),
);
@@ -129,6 +129,7 @@ class WebviewTestController extends GetControllerEx<WebviewTestModel> {
return true;
});
bridge.sdk.restoreTimer((args) async {
ef.log('更新定时: $args[0]');
ef.log('queryInstantData: $args');
MHTHomeController homeController = Get.find();
var data = await homeController.restoreTimer(args);