init
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user