sync group

Signed-off-by: yuqianyuan <yuqianyuan@huawei.com>
This commit is contained in:
yuqianyuan
2021-09-27 17:02:47 +08:00
parent 18805f2d80
commit dced5ea684
@@ -49,7 +49,7 @@ int32_t MsgSyncGroup::Decode(nlohmann::json &json)
MsgHead msgHead;
mHead_ = msgHead.Decode(json);
mDeviceId_ = json[TAG_DEVICE_ID];
mGroupIdList_ = static_cast<std::vector<std::string>>(json[TAG_GROUPIDS]);
mGroupIdList_ = json.at(TAG_GROUPIDS).get<std::vector<std::string>>();
DMLOG(DM_LOG_INFO, "MsgSyncGroup decode completed");
return DEVICEMANAGER_OK;
}