This commit is contained in:
HolographicHat
2022-04-05 19:11:12 +08:00
parent a22ad8e87d
commit 18e3d3ffe3
4 changed files with 17 additions and 46 deletions

View File

@@ -95,7 +95,7 @@ namespace native {
return env.Null();
}
string id = WStringToString(wd);
return Napi::String::New(env, id.substr(0, 8) + id.substr(8, 4) + id.substr(12, 4) + id.substr(16, 4) + id.substr(20, 12));
return Napi::String::New(env, id.substr(0, 8) + "-" + id.substr(8, 4) + "-" + id.substr(12, 4) + "-" + id.substr(16, 4) + "-" + id.substr(20, 12));
}
Value getDeviceInfo(const CallbackInfo &info) {