chore: 提供中文字符编码解决方案

This commit is contained in:
2025-11-22 11:46:14 +08:00
parent 2611162e60
commit caaf85290f
4 changed files with 272 additions and 8 deletions

View File

@@ -56,4 +56,17 @@ class ScheduleDict
if($code) return $list[$code] ?? '';
return $list;
}
public static function getSuggestion(string $type) {
switch($type) {
case self::default:
return '请检查系统计划任务配置,确保 cron 进程正常运行,并检查网络连接和 SSL 证书设置。';
case self::url:
return '请检查网络连接、目标 URL 可访问性、HTTP 状态码和接口认证配置。可以使用 curl 命令手动测试接口。';
case self::cli:
return '请检查 cron 服务状态、命令执行权限、脚本路径和 PHP CLI 环境。建议使用 crontab -l 查看当前任务配置。';
default:
return '请检查计划任务配置文件和相关权限设置,确保所有依赖服务正常运行。';
}
}
}