Commit b93c3c5
committed
fix: 解决Pod2Post生成中的占位符图片问题
- 添加相对CDN路径处理,将 ../CDN/ 格式转换为 CDN/
- 确保AI生成时使用实际的CDN资源而非占位符URL
- 支持Docker和本地开发环境的公共CDN路径检测
- 修复正则表达式以正确处理CSS url()中的路径
问题根因:模板文档中使用 ../CDN/cardplanet_logo_filled.svg 等相对路径,
AI无法解析这些路径,因此生成了 https://via.placeholder.com 占位符。
现在这些路径会被替换为 CDN/filename 格式,让AI知道使用CDN目录中的实际文件。1 parent 7e505cb commit b93c3c5
4 files changed
Lines changed: 82 additions & 2 deletions
File tree
- terminal-backend
- data
- public_template/pod2post/CDN
- users/default/workspace/templates/pod2post
- resources
- tasks/pod2post_1758854411575_test/resources
- src/utils
Lines changed: 33 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
111 | 156 | | |
112 | 157 | | |
113 | 158 | | |
114 | 159 | | |
115 | 160 | | |
116 | 161 | | |
117 | | - | |
| 162 | + | |
118 | 163 | | |
119 | 164 | | |
120 | 165 | | |
121 | 166 | | |
122 | | - | |
| 167 | + | |
123 | 168 | | |
124 | 169 | | |
125 | 170 | | |
| |||
0 commit comments