|
|
@ -55,12 +55,17 @@ void DisinfectionCtrlServiceExt::start(shared_ptr<MsgProcessContext> cxt, string |
|
|
|
// 从setting中获取实时参数
|
|
|
|
int level = atoi(loglevel.c_str()); |
|
|
|
dcs->start(level); |
|
|
|
ADD_USER_BEHAVIOR(ds->getLoginUid(), kbehavior_do_disinfection, fmt::format("开始消毒,level:{}", level)); |
|
|
|
// m_state = DisinfectionState::preheat;
|
|
|
|
} |
|
|
|
void DisinfectionCtrlServiceExt::startWithFormula(shared_ptr<MsgProcessContext> cxt, string formulaid) { //
|
|
|
|
dcs->startWithFormula(formulaid); |
|
|
|
json formula = dcs->startWithFormula(formulaid); |
|
|
|
ADD_USER_BEHAVIOR(ds->getLoginUid(), kbehavior_do_formula, fmt::format("启动配置方,{}", formula["name"])); |
|
|
|
} |
|
|
|
void DisinfectionCtrlServiceExt::stop(shared_ptr<MsgProcessContext> cxt) { |
|
|
|
ADD_USER_BEHAVIOR(ds->getLoginUid(), kbehavior_stop_disinfection, ""); |
|
|
|
dcs->stop(); |
|
|
|
} |
|
|
|
void DisinfectionCtrlServiceExt::stop(shared_ptr<MsgProcessContext> cxt) { dcs->stop(); } |
|
|
|
|
|
|
|
void DisinfectionCtrlServiceExt::getRealtimeConfig(shared_ptr<MsgProcessContext> cxt) { |
|
|
|
json& rely = cxt->rely; |
|
|
|