更新新版控制

This commit is contained in:
wyf
2025-12-30 15:58:19 +08:00
parent 1dcef1090d
commit 36f19a71eb
20 changed files with 359 additions and 71 deletions

View File

@@ -578,6 +578,9 @@ class MHTHomeController extends GetControllerEx<MHTHomeModel> {
String serviceName = ServiceConstant.server_service;
String serviceApi = ServiceConstant.user_setting;
String type = "control_${tmp['mac']}";
if (tmp['type'] != null) {
type = "${type}_${tmp['type']}";
}
String queryUrl = "$serviceAddress$serviceName$serviceApi";
var data = {
"type": type,
@@ -624,6 +627,9 @@ class MHTHomeController extends GetControllerEx<MHTHomeModel> {
String serviceName = ServiceConstant.server_service;
String serviceApi = ServiceConstant.user_setting;
String type = "control_${tmp}";
if(tmp['type'] != null){
type = "control_${tmp['mac']}_${tmp['type']}";
}
String queryUrl =
"${serviceAddress}${serviceName}${serviceApi}?type=$type";
await requestWithLog(