fix: 修复企业微信通知环境变量展开问题
ci/woodpecker/push/woodpecker Pipeline failed

- 使用 PAYLOAD=$(cat <<ENDPAYLOAD) 替代 cat > file <<EOF
- 确保环境变量在 heredoc 中正确展开
- 添加测试脚本验证环境变量展开
- 修复构建详情链接和消息内容缺失问题
This commit is contained in:
张翔
2026-03-28 22:48:22 +08:00
parent 5a27d2fc2a
commit dd2a0999bb
35 changed files with 2728 additions and 915 deletions
+4 -2
View File
@@ -33,7 +33,7 @@ export async function GET(request: NextRequest) {
}
const conditions = [];
if (category) {
conditions.push(eq(siteConfig.category, category as 'feature' | 'style' | 'seo' | 'general'));
}
@@ -46,8 +46,10 @@ export async function GET(request: NextRequest) {
.where(whereClause)
.orderBy(siteConfig.key);
const filteredConfigs = configs.filter(config => !config.key.startsWith('test_'));
return success({
configs: configs,
configs: filteredConfigs,
});
} catch (error) {
return handleApiError(error);