WIFI-14257: fix can not get corrent deviceTypes from AppServiceRegistry

Signed-off-by: MBW <mbwofmbw@foxmail.com>
This commit is contained in:
MBW
2024-11-06 19:04:37 +08:00
parent a549024a29
commit 342c6900ef

View File

@@ -67,9 +67,9 @@ namespace OpenWifi {
bool Get(const char *key, std::vector<std::string> &Value) {
if(Registry_->has(key) && !Registry_->isNull(key) && Registry_->isArray(key)) {
auto Arr = Registry_->get(key);
for(const auto &v:Arr) {
Value.emplace_back(v);
auto pArr = Registry_->getArray(key);
for(const auto &v : *pArr) {
Value.emplace_back(v.toString());
}
return true;
}