|
|
@ -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) { |
|
|
|