|
...
|
...
|
@@ -186,17 +186,18 @@ class TicketUploadDataLogic extends BaseLogic |
|
|
|
$v['url'] = str_replace_url($v['url']);
|
|
|
|
$info['text']['image'][$k] = $v;
|
|
|
|
}
|
|
|
|
$thumb = Arr::a2s($info['text']['image'][0] ?? []);
|
|
|
|
$info['text']['image'] = Arr::a2s($info['text']['image'] ?? []);
|
|
|
|
}else{
|
|
|
|
$info['text']['image'] = Arr::a2s([]);
|
|
|
|
$thumb = $info['text']['image'] = Arr::a2s([]);
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
$productModel = new Product();
|
|
|
|
$data = [
|
|
|
|
'project_id' => $info['project_id'],
|
|
|
|
'title' => $info['text']['title'],
|
|
|
|
'thumb'=>json_encode($info['text']['image'][0] ?? [],true),
|
|
|
|
'gallery'=>json_encode($info['text']['image'] ?? [],true),
|
|
|
|
'thumb'=>$thumb,
|
|
|
|
'gallery'=>$info['text']['image'] ?? [],
|
|
|
|
'intro'=>$info['text']['remark'],
|
|
|
|
'category_id'=>$category_id ?? '',
|
|
|
|
'keyword_id'=>$keyword_id ?? '',
|
...
|
...
|
|