提交 0409b41b authored 作者: blu's avatar blu

new feature: evwifi

上级 12c858d4
...@@ -255,9 +255,13 @@ class WifiMgr { ...@@ -255,9 +255,13 @@ class WifiMgr {
ret["code"] = 0; ret["code"] = 0;
ret["msg"] = "ok"; ret["msg"] = "ok";
string scan = req.get_param_value("scan"); string scan = req.get_param_value("scan");
if(!scan.empty() && scan != "false"){ if(!scan.empty()){
if(scan == "true"){
this->scanWifi(); this->scanWifi();
ret["wifiData"] = this->wifiData; ret["wifiData"] = this->wifiData;
}else{
ret["wifiData"] = this->wifiData;
}
} }
if(scan.empty() && !mode.empty()){ if(scan.empty() && !mode.empty()){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论