This commit is contained in:
zimoyin
2026-04-03 11:32:19 +08:00
parent 4c841b9dbf
commit 1a84e92384
30 changed files with 403 additions and 1030 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
namespace app\controller;
use app\config\Config;
use app\utils\ModelAutoGenerator;
use plugin\admin\app\common\ModelAutoGenerator;
use app\zlm\ZLMClient;
use support\Request;
use support\Response;
@@ -144,7 +144,7 @@ class IndexController
if ($httpCode !== 200 || empty($imageData)) {
// 记录错误日志
\app\utils\Logger::error("ZLM截图失败: HTTP {$httpCode}, 错误: {$error}, URL: {$url}");
\plugin\admin\app\common\Logger::error("ZLM截图失败: HTTP {$httpCode}, 错误: {$error}, URL: {$url}");
// 返回错误提示图
return $this->generateErrorImage("截图失败: HTTP {$httpCode}");
}
@@ -165,7 +165,7 @@ class IndexController
]);
} catch (\Throwable $e) {
\app\utils\Logger::error("ZLM截图异常: " . $e->getMessage());
\plugin\admin\app\common\Logger::error("ZLM截图异常: " . $e->getMessage());
return $this->generateErrorImage("截图异常: " . $e->getMessage());
}
}