|
|
@ -55,6 +55,7 @@ static EcodeInfo chEcodeInfo[] = { |
|
|
|
{kappe_user_not_exist, "用户不存在"}, |
|
|
|
{kappe_passwd_error, "密码错误"}, |
|
|
|
{kappe_user_exist, "用户已存在"}, |
|
|
|
{kappe_login_fail_device_islogined, "登陆失败,设备已登录"}, |
|
|
|
{kappe_disinfectant_insufficient, "消毒液不足"}, |
|
|
|
{kappe_the_bottom_of_the_device_has_water, "硬件仓内有液体"}, |
|
|
|
{kappe_the_evaporation_bin_has_water, "蒸发仓内有液体"}, |
|
|
@ -173,3 +174,22 @@ string Internationalization::ecode2description(int ecode, int32_t toboard, int32 |
|
|
|
} |
|
|
|
return fmt::format("{},执行{}错误", ecode, cmdid2str(cmdid)); |
|
|
|
} |
|
|
|
string Internationalization::deviceBusyError2description(int ecode, DeviceState deviceState) { |
|
|
|
if (ecode == kappe_state_is_busy) { |
|
|
|
switch (deviceState) { |
|
|
|
case DeviceState::kIdle: |
|
|
|
return "设备空闲"; |
|
|
|
case DeviceState::kAddingLiquid: |
|
|
|
return "操作不允许, 设备正在加液"; |
|
|
|
case DeviceState::kDrainingLiquid: |
|
|
|
return "操作不允许, 设备正在排液"; |
|
|
|
case DeviceState::kDisinfection: |
|
|
|
return "操作不允许, 设备正在消毒"; |
|
|
|
case DeviceState::kAirLeakDetectTesting: |
|
|
|
return "操作不允许, 设备正在气密性测试"; |
|
|
|
default: |
|
|
|
return "设备状态未知"; |
|
|
|
} |
|
|
|
} |
|
|
|
return ecode2description(ecode); |
|
|
|
} |