0106 modify print format

Signed-off-by: @chuangda_1 <fangwanning@huawei.com>
This commit is contained in:
@chuangda_1 2023-01-06 16:37:32 +08:00
parent 46d172629d
commit a1edc504af

View File

@ -586,10 +586,9 @@ std::shared_ptr<PrintJob> PrintJob::BuildFromJs(napi_env env, napi_value jsValue
nativeObj->SetColorMode(colorMode);
nativeObj->SetDuplexMode(duplexMode);
auto ans = std::make_shared<PrintJob>();
ans = BuildJsWorkerIsLegal(env, jsValue, jobId, jobState, subState, nativeObj);
BuildJsWorkerIsLegal(env, jsValue, jobId, jobState, subState, nativeObj);
nativeObj->Dump();
return ans;
return nativeObj;
}
std::shared_ptr<PrintJob> PrintJob::BuildJsWorkerIsLegal(napi_env env, napi_value jsValue, std::string jobId,