chenluhua1980
2026-01-04 3afd6812c6bcb156297a9000db44caf23ede568c
SourceCode/Bond/Servo/HsmsPassive.cpp
@@ -950,7 +950,8 @@
      return -1;
   }
   std::wregex pattern(L"^\\d+,[^,]*,[^,]*,\\(\\d+(,\\d+)*\\).*");  // 匹配以数字+逗号开头的字符串
   // 允许 Attached RPTID 为空:()
   std::wregex pattern(L"^\\d+,[^,]*,[^,]*,\\(\\d*(,\\d+)*\\).*");  // 匹配以数字+逗号开头的字符串
   std::vector<SERVO::CCollectionEvent*> events;
   int index, last;
   CStringW strLine, strRPTIDs;
@@ -2468,9 +2469,6 @@
   }
   SERVO::CReport* pReport = pEvent->getFirstReport();
   if (pReport == nullptr) {
      return ER_UNLINK_EVENT_REPORT;
   }
   Lock();
@@ -2482,14 +2480,16 @@
   // pItem->addU2Item(++DATAID, "DATAID");      // 根据别的日志显示DATAID恒为0,所以我们先照使用0
   pItem->addU2Item(0, "DATAID");
   pItem->addU4Item(CEID, "CEID");
   ISECS2Item* pItemList1 = pItem->addItem();
   ISECS2Item* pItemList2 = pItemList1->addItem();
   pItemList2->addU4Item(pReport->getReportId(), "RPTID");
   ISECS2Item* pItemList3 = pItemList2->addItem();
   ISECS2Item* pItemList1 = pItem->addItem(); // L[n] reports
   if (pReport != nullptr) {
      ISECS2Item* pItemList2 = pItemList1->addItem();
      pItemList2->addU4Item(pReport->getReportId(), "RPTID");
      ISECS2Item* pItemList3 = pItemList2->addItem();
   auto vars = pReport->getVariables();
   for (auto var : vars) {
      addVariableValueToItem(pItemList3, var);
      auto vars = pReport->getVariables();
      for (auto var : vars) {
         addVariableValueToItem(pItemList3, var);
      }
   }
   pAction->setSendMessage(pMessage);
   if (m_pPassive == NULL || STATE::SELECTED != m_pPassive->getState()) {
@@ -2609,4 +2609,14 @@
   return requestEventReportSend("ProcessDataReport");
}
int CHsmsPassive::requestEventReportSend_SubEqpStart()
{
   return requestEventReportSend("SubEqpStart");
}
int CHsmsPassive::requestEventReportSend_SubEqpEnd()
{
   return requestEventReportSend("SubEqpEnd");
}