Update the Dependency Handling Scheme

This commit is contained in:
马一丁
2025-11-19 13:37:59 +08:00
parent be1fe539b5
commit 69ba0f22e3
4 changed files with 100 additions and 14 deletions
+6 -4
View File
@@ -1047,8 +1047,9 @@ def export_pdf(task_id: str):
if not pango_available:
return jsonify({
'success': False,
'error': 'PDF 导出功能不可用:缺少 Pango 系统依赖',
'details': '请查看 requirements.txt 文件中的 "===== PDF生成 =====" 部分了解如何安装 Pango',
'error': 'PDF 导出功能不可用:缺少系统依赖',
'details': '请查看根目录 README.md 第393行「PDF 导出依赖」部分了解如何安装依赖',
'help_url': 'https://github.com/666ghj/BettaFish#3-安装-pdf-导出所需系统依赖可选',
'system_message': pango_message
}), 503
@@ -1135,8 +1136,9 @@ def export_pdf_from_ir():
if not pango_available:
return jsonify({
'success': False,
'error': 'PDF 导出功能不可用:缺少 Pango 系统依赖',
'details': '请查看 requirements.txt 文件中的 "===== PDF生成 =====" 部分了解如何安装 Pango',
'error': 'PDF 导出功能不可用:缺少系统依赖',
'details': '请查看根目录 README.md 第393行「PDF 导出依赖」部分了解如何安装依赖',
'help_url': 'https://github.com/666ghj/BettaFish#3-安装-pdf-导出所需系统依赖可选',
'system_message': pango_message
}), 503