作者 刘锟

upload_remote

@@ -284,7 +284,7 @@ class NewsLogic extends BaseLogic @@ -284,7 +284,7 @@ class NewsLogic extends BaseLogic
284 'category_id' => $category_id, 284 'category_id' => $category_id,
285 'text' => $data[4], 285 'text' => $data[4],
286 'remark' => $data[3], 286 'remark' => $data[3],
287 - 'image' => CosService::uploadRemote($project_id, 'image_news', $data[5]), 287 + 'image' => $data['5'] ? CosService::uploadRemote($project_id, 'image_news', $data[5]) : '',
288 'seo_title' => $data[6], 288 'seo_title' => $data[6],
289 'seo_keywords' => $data[7], 289 'seo_keywords' => $data[7],
290 'seo_description' => $data[8], 290 'seo_description' => $data[8],