mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 15:25:50 +00:00
修复:WCDB 初始化失败时显示错误码
- 将 DLL 返回的错误码保存到 lastDllInitError - 用户可以看到具体错误码,方便反馈问题 - 配合 DLL 更新,支持更详细的错误码 - 修复 #353
This commit is contained in:
@@ -731,6 +731,7 @@ export class WcdbCore {
|
|||||||
const initResult = this.wcdbInit()
|
const initResult = this.wcdbInit()
|
||||||
if (initResult !== 0) {
|
if (initResult !== 0) {
|
||||||
console.error('WCDB 初始化失败:', initResult)
|
console.error('WCDB 初始化失败:', initResult)
|
||||||
|
lastDllInitError = `初始化失败(错误码: ${initResult})`
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user