1.更新消息阅读时间
2.修复配置wifi时wifi名称存在空格时配置失败 3.修复门店体验列表刷新失败
This commit is contained in:
@@ -10,7 +10,7 @@ import 'package:vbvs_app/common/util/DailyLogUtils.dart';
|
||||
// wifi列表指令
|
||||
getWifiList(THapp tHapp) async {
|
||||
try {
|
||||
await openDlog(tHapp);
|
||||
await openDlog(tHapp);
|
||||
print("wscan scan");
|
||||
edm.EasyDartModule.logger.info("发送请求网络列表指令");
|
||||
DailyLogUtils.writeLog("发送请求网络列表指令");
|
||||
@@ -54,7 +54,7 @@ getWifiList(THapp tHapp) async {
|
||||
}
|
||||
|
||||
getWifiStatus(THapp tHapp) async {
|
||||
await openDlog(tHapp);
|
||||
await openDlog(tHapp);
|
||||
edm.EasyDartModule.logger.info("发送请求设备网络状态指令");
|
||||
DailyLogUtils.writeLog("发送请求设备网络状态指令");
|
||||
var result = await tHapp.send(
|
||||
@@ -85,7 +85,7 @@ getWifiStatus(THapp tHapp) async {
|
||||
|
||||
Future<bool> sendWifiSetting(wifiItem, String password, THapp tHapp) async {
|
||||
try {
|
||||
await openDlog(tHapp);
|
||||
await openDlog(tHapp);
|
||||
edm.EasyDartModule.logger.info("发送wifi配置指令");
|
||||
DailyLogUtils.writeLog("发送wifi配置指令->");
|
||||
// String cmd = "vtouch save update -a -i .wifi.sta.auth=${wifiItem['auth']} "
|
||||
@@ -132,7 +132,7 @@ getDeviceWifiStatus(
|
||||
edm.EasyDartModule.logger.info("[aaa:配置开始]发送请求设备已配置网络状态指令:${currenttIme}");
|
||||
ef.log("[aaa:配置开始]:${currenttIme}");
|
||||
var stream = tHapp.logingStream.listen((data) {
|
||||
ef.log("[设备日志]:${data}");
|
||||
ef.log("[设备日志1]:${data}");
|
||||
});
|
||||
try {
|
||||
var result = await tHapp.send("at+system info", true, (ss) {
|
||||
@@ -153,8 +153,11 @@ getDeviceWifiStatus(
|
||||
// 如果设备连接状态是 "connect",继续检测
|
||||
if (status.contains('connect')) {
|
||||
// 匹配 Wi-Fi 连接信息
|
||||
// final wifiInfoMatch = RegExp(
|
||||
// r'WIFI CONNECTED INFO:SSID=([^\s]+),RSSI=([-0-9]+),AUTH=([0-9]+),CH=([0-9]+),BSSID=([A-F0-9]+)')
|
||||
// .firstMatch(log);
|
||||
final wifiInfoMatch = RegExp(
|
||||
r'WIFI CONNECTED INFO:SSID=([^\s]+),RSSI=([-0-9]+),AUTH=([0-9]+),CH=([0-9]+),BSSID=([A-F0-9]+)')
|
||||
r'WIFI CONNECTED INFO:SSID=(.+?),RSSI=([-0-9]+),AUTH=([0-9]+),CH=([0-9]+),BSSID=([A-F0-9]+)')
|
||||
.firstMatch(log);
|
||||
if (wifiInfoMatch != null) {
|
||||
final ssid = wifiInfoMatch.group(1);
|
||||
@@ -207,7 +210,7 @@ getDeviceWifiStatus(
|
||||
|
||||
//只有4g并且没有wifi
|
||||
Future<String> getDeviceNetVersion(THapp tHapp, int times) async {
|
||||
await openDlog(tHapp);
|
||||
await openDlog(tHapp);
|
||||
edm.EasyDartModule.logger.info("发送请求设备的网络信息");
|
||||
DailyLogUtils.writeLog("发送请求设备的网络信息");
|
||||
print("ls /root/mnt");
|
||||
@@ -245,7 +248,7 @@ Future<String> getDeviceNetVersion(THapp tHapp, int times) async {
|
||||
|
||||
/// 发送关闭blog日志与开启业务日志的指令
|
||||
Future<bool> sendBlogAndDlogCommands(THapp tHapp) async {
|
||||
await openDlog(tHapp);
|
||||
await openDlog(tHapp);
|
||||
edm.EasyDartModule.logger.info("发送 blog disable 与 dlog on business 指令");
|
||||
DailyLogUtils.writeLog("发送 blog disable 与 dlog on business 指令");
|
||||
try {
|
||||
@@ -299,7 +302,7 @@ Future<bool> sendBlogAndDlogCommands(THapp tHapp) async {
|
||||
|
||||
/// 执行 wscan close -> 延迟 1s -> wscan open
|
||||
Future<bool> sendCloseAndOpenWscanCommand(THapp tHapp) async {
|
||||
await openDlog(tHapp);
|
||||
await openDlog(tHapp);
|
||||
edm.EasyDartModule.logger.info("执行 wscan close -> wscan open 指令");
|
||||
DailyLogUtils.writeLog("执行 wscan close -> wscan open 指令开始");
|
||||
|
||||
@@ -352,7 +355,7 @@ Future<bool> sendCloseAndOpenWscanCommand(THapp tHapp) async {
|
||||
/// 若匹配到“关键内存剩余:xxxx 字节”,其中 xxxx < 20000 返回 false,
|
||||
/// 否则返回 true。
|
||||
Future<bool> queryMemory(THapp tHapp, {int times = 1}) async {
|
||||
await openDlog(tHapp);
|
||||
await openDlog(tHapp);
|
||||
edm.EasyDartModule.logger.info("发送查询内存状态指令 (free all)");
|
||||
DailyLogUtils.writeLog("发送查询内存状态指令 (free all)");
|
||||
|
||||
@@ -401,7 +404,7 @@ Future<bool> queryMemory(THapp tHapp, {int times = 1}) async {
|
||||
/// 发送 "reboot" 命令,若响应中包含 reboot / restart / ok / success 等关键字
|
||||
/// 视为执行成功,返回 true;否则返回 false。
|
||||
Future<bool> rebootDevice(THapp tHapp) async {
|
||||
await openDlog(tHapp);
|
||||
await openDlog(tHapp);
|
||||
edm.EasyDartModule.logger.info("发送设备重启指令 (reboot)");
|
||||
DailyLogUtils.writeLog("发送设备重启指令 (reboot)");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user