diff --git a/hapsigntool_cpp/cmd/src/cmd_util.cpp b/hapsigntool_cpp/cmd/src/cmd_util.cpp index 9f44bf2e00c33935e4b8073f0433efd54bd6319f..669f7c1b57254e00ee438ba1bba025ab5ec2c2c0 100644 --- a/hapsigntool_cpp/cmd/src/cmd_util.cpp +++ b/hapsigntool_cpp/cmd/src/cmd_util.cpp @@ -390,7 +390,7 @@ void CmdUtil::TransformKeyAliasWhenLocalSign(const ParamsSharedPtr& params) { Options* options = params->GetOptions(); std::string mode = options->GetString(Options::MODE); - if (mode != LOCAL_SIGN) { + if (mode == REMOTE_SIGN) { return; }