正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -207,10 +207,10 @@ class TicketUploadDataLogic extends BaseLogic | @@ -207,10 +207,10 @@ class TicketUploadDataLogic extends BaseLogic | ||
| 207 | public function save5ProductData($info,$url){ | 207 | public function save5ProductData($info,$url){ |
| 208 | $response = Http::withHeaders([])->asForm()->post($url, [ | 208 | $response = Http::withHeaders([])->asForm()->post($url, [ |
| 209 | 'title' => $info['text']['title'], | 209 | 'title' => $info['text']['title'], |
| 210 | - 'cate_id' => implode(',',$info['text']['cate']) ?? '', | 210 | + 'cate_id' => isset($info['text']['cate']) ? implode(',', $info['text']['cate']) : '', |
| 211 | 'content'=>$info['text']['content'] ?? '', | 211 | 'content'=>$info['text']['content'] ?? '', |
| 212 | 'short_description'=>$info['text']['short_description'] ?? '', | 212 | 'short_description'=>$info['text']['short_description'] ?? '', |
| 213 | - 'images'=>$info['text']['images'] ?? '', | 213 | + 'images'=>$info['text']['image'] ?? '', |
| 214 | ]); | 214 | ]); |
| 215 | if ($response->successful()) { | 215 | if ($response->successful()) { |
| 216 | $result = $response->json(); // 获取 JSON 响应体 | 216 | $result = $response->json(); // 获取 JSON 响应体 |
| @@ -233,7 +233,7 @@ class TicketUploadDataLogic extends BaseLogic | @@ -233,7 +233,7 @@ class TicketUploadDataLogic extends BaseLogic | ||
| 233 | 'title' => $info['text']['title'], | 233 | 'title' => $info['text']['title'], |
| 234 | 'cate' => $info['text']['cate'] ?? '', | 234 | 'cate' => $info['text']['cate'] ?? '', |
| 235 | 'content'=>$info['text']['content'] ?? '', | 235 | 'content'=>$info['text']['content'] ?? '', |
| 236 | - 'images'=>$info['text']['images'] ?? '', | 236 | + 'image'=>$info['text']['image'] ?? '', |
| 237 | ]); | 237 | ]); |
| 238 | if ($response->successful()) { | 238 | if ($response->successful()) { |
| 239 | $result = $response->json(); // 获取 JSON 响应体 | 239 | $result = $response->json(); // 获取 JSON 响应体 |
-
请 注册 或 登录 后发表评论