modify code dex

Signed-off-by: 廖康康 <liaokangkang@huawei.com>
This commit is contained in:
廖康康 2022-02-21 19:59:54 +08:00
parent f9666f6b23
commit 7d4876bb19

View File

@ -146,7 +146,7 @@ napi_value Common::GetU16StringValue(const napi_env &env, const napi_value &valu
size_t strLen = 0;
NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen));
result = Str8ToStr16(str);
result = Str8ToStr16((std::string)str);
BGTASK_LOGI("string result: %{public}s", Str16ToStr8(result).c_str());
} else {
return nullptr;