|
...
|
...
|
@@ -207,10 +207,10 @@ class TicketUploadDataLogic extends BaseLogic |
|
|
|
public function save5ProductData($info,$url){
|
|
|
|
$response = Http::withHeaders([])->asForm()->post($url, [
|
|
|
|
'title' => $info['text']['title'],
|
|
|
|
'cate_id' => implode(',',$info['text']['cate']) ?? '',
|
|
|
|
'cate_id' => isset($info['text']['cate']) ? implode(',', $info['text']['cate']) : '',
|
|
|
|
'content'=>$info['text']['content'] ?? '',
|
|
|
|
'short_description'=>$info['text']['short_description'] ?? '',
|
|
|
|
'images'=>$info['text']['images'] ?? '',
|
|
|
|
'images'=>$info['text']['image'] ?? '',
|
|
|
|
]);
|
|
|
|
if ($response->successful()) {
|
|
|
|
$result = $response->json(); // 获取 JSON 响应体
|
|
...
|
...
|
@@ -233,7 +233,7 @@ class TicketUploadDataLogic extends BaseLogic |
|
|
|
'title' => $info['text']['title'],
|
|
|
|
'cate' => $info['text']['cate'] ?? '',
|
|
|
|
'content'=>$info['text']['content'] ?? '',
|
|
|
|
'images'=>$info['text']['images'] ?? '',
|
|
|
|
'image'=>$info['text']['image'] ?? '',
|
|
|
|
]);
|
|
|
|
if ($response->successful()) {
|
|
|
|
$result = $response->json(); // 获取 JSON 响应体
|
...
|
...
|
|