fix: 优化客户端错误提示和校验诊断信息
This commit is contained in:
+8
-6
@@ -97,12 +97,14 @@ int main(int argc, char* argv[])
|
||||
if (!integrity.verifyInstalledVersion(
|
||||
config.getValue("App", "app_id"), config.getValue("App", "channel"),
|
||||
config.getValue("App", "current_version")))
|
||||
{
|
||||
QMessageBox::critical(nullptr, "Integrity Check Failed",
|
||||
QString("Application files failed signed Manifest verification:\n%1")
|
||||
.arg(integrity.errorString()));
|
||||
return -1;
|
||||
}
|
||||
{
|
||||
QMessageBox::critical(nullptr, "Integrity Check Failed",
|
||||
QString("Startup blocked because the installed files failed local signed Manifest verification.\n"
|
||||
"This is not a download check; it means the current installation directory does not match the signed Manifest cache for this version.\n\n"
|
||||
"Details:\n%1")
|
||||
.arg(integrity.errorString()));
|
||||
return -1;
|
||||
}
|
||||
|
||||
MainWindow w;
|
||||
w.show();
|
||||
|
||||
Reference in New Issue
Block a user