debug: 添加更多enhance API调试日志
This commit is contained in:
parent
b64cefccb5
commit
e3f15b8bef
@ -169,8 +169,11 @@ export async function POST(request: NextRequest) {
|
||||
}
|
||||
|
||||
const userId = session.user.id;
|
||||
console.log("[Enhance API] 用户ID:", userId);
|
||||
// 1. 从数据库获取变清晰API配置
|
||||
console.log("[Enhance API] 开始获取配置...");
|
||||
const enhanceConfig = await getSystemSetting({ key: "enhance_api_config" });
|
||||
console.log("[Enhance API] 配置获取完成:", enhanceConfig ? "已找到" : "未找到");
|
||||
|
||||
if (!enhanceConfig || !enhanceConfig.value) {
|
||||
return NextResponse.json(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user