作者 李宇航

合并分支 'lyh-server' 到 'master'

变更数据



查看合并请求 !3226
@@ -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 响应体