Browse Source

update

master
zhaohe 2 weeks ago
parent
commit
899fd27b70
  1. 2
      appsrc/appconfig/basic/zappversion.hpp
  2. 16
      appsrc/service/setting_mgr_service.cpp

2
appsrc/appconfig/basic/zappversion.hpp

@ -1,3 +1,3 @@
#pragma once
#define VERSION "3.3.3"
#define VERSION "3.3.4"
#define PROJECT_NAME "TRANSMIT_DM"

16
appsrc/service/setting_mgr_service.cpp

@ -69,15 +69,17 @@ void SettingMgrService::updateFormula(shared_ptr<MsgProcessContext> cxt, string
} catch (const std::exception& e) {
}
string formulaContent = formula.dump(0);
//替换 { 为 | } 为 |
replace(formulaContent.begin(), formulaContent.end(), '{', '|');
replace(formulaContent.begin(), formulaContent.end(), '}', '|');
//替换" 为 空格
replace(formulaContent.begin(), formulaContent.end(), '"', ' ');
// //删除 formula_id
// formula.erase("formula_id");
// string formulaContent = formula.dump();
// //替换 { 为 | } 为 |
// replace(formulaContent.begin(), formulaContent.end(), '{', '|');
// replace(formulaContent.begin(), formulaContent.end(), '}', '|');
// //替换" 为 空格
// replace(formulaContent.begin(), formulaContent.end(), '"', ' ');
ADD_USER_BEHAVIOR(DS->getLoginName(), fmt::format("更新配方 {} {}", formulaName, formula.dump()));
ADD_USER_BEHAVIOR(DS->getLoginName(), fmt::format("更新配方 {} {}", formulaName,""));
return;
}
void SettingMgrService::updateFormulaIterm(shared_ptr<MsgProcessContext> cxt, string formula_id, string itemName, string val) {

Loading…
Cancel
Save