正在显示
1 个修改的文件
包含
4 行增加
和
3 行删除
| @@ -186,17 +186,18 @@ class TicketUploadDataLogic extends BaseLogic | @@ -186,17 +186,18 @@ class TicketUploadDataLogic extends BaseLogic | ||
| 186 | $v['url'] = str_replace_url($v['url']); | 186 | $v['url'] = str_replace_url($v['url']); |
| 187 | $info['text']['image'][$k] = $v; | 187 | $info['text']['image'][$k] = $v; |
| 188 | } | 188 | } |
| 189 | + $thumb = Arr::a2s($info['text']['image'][0] ?? []); | ||
| 189 | $info['text']['image'] = Arr::a2s($info['text']['image'] ?? []); | 190 | $info['text']['image'] = Arr::a2s($info['text']['image'] ?? []); |
| 190 | }else{ | 191 | }else{ |
| 191 | - $info['text']['image'] = Arr::a2s([]); | 192 | + $thumb = $info['text']['image'] = Arr::a2s([]); |
| 192 | } | 193 | } |
| 193 | try { | 194 | try { |
| 194 | $productModel = new Product(); | 195 | $productModel = new Product(); |
| 195 | $data = [ | 196 | $data = [ |
| 196 | 'project_id' => $info['project_id'], | 197 | 'project_id' => $info['project_id'], |
| 197 | 'title' => $info['text']['title'], | 198 | 'title' => $info['text']['title'], |
| 198 | - 'thumb'=>json_encode($info['text']['image'][0] ?? [],true), | ||
| 199 | - 'gallery'=>json_encode($info['text']['image'] ?? [],true), | 199 | + 'thumb'=>$thumb, |
| 200 | + 'gallery'=>$info['text']['image'] ?? [], | ||
| 200 | 'intro'=>$info['text']['remark'], | 201 | 'intro'=>$info['text']['remark'], |
| 201 | 'category_id'=>$category_id ?? '', | 202 | 'category_id'=>$category_id ?? '', |
| 202 | 'keyword_id'=>$keyword_id ?? '', | 203 | 'keyword_id'=>$keyword_id ?? '', |
-
请 注册 或 登录 后发表评论