正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -287,12 +287,12 @@ class ProductLogic extends BaseLogic | @@ -287,12 +287,12 @@ class ProductLogic extends BaseLogic | ||
| 287 | $param = [ | 287 | $param = [ |
| 288 | 'project_id'=>$info['project_id'], | 288 | 'project_id'=>$info['project_id'], |
| 289 | 'title'=>$info['title']."-copy", | 289 | 'title'=>$info['title']."-copy", |
| 290 | - 'thumb'=>Arr::a2s($info['thumb']), | ||
| 291 | - 'gallery'=>Arr::a2s($info['gallery']), | 290 | + 'thumb'=>!empty($info['thumb']) ? Arr::a2s($info['thumb']) : '', |
| 291 | + 'gallery'=>!empty($info['gallery']) ? Arr::a2s($info['gallery']) : '', | ||
| 292 | 'attrs'=>Arr::a2s($info['attrs']), | 292 | 'attrs'=>Arr::a2s($info['attrs']), |
| 293 | 'attr_id'=>Arr::arrToSet($info['attr_id']), | 293 | 'attr_id'=>Arr::arrToSet($info['attr_id']), |
| 294 | - 'category_id'=>','.Arr::arrToSet($info['category_id']).',', | ||
| 295 | - 'keyword_id'=>','.Arr::arrToSet($info['keyword_id']).',', | 294 | + 'category_id'=>!empty($info['category_id']) ? ','.Arr::arrToSet($info['category_id']).',' : '', |
| 295 | + 'keyword_id'=>!empty($info['keyword_id']) ? ','.Arr::arrToSet($info['keyword_id']).',' : '', | ||
| 296 | 'intro'=>$info['intro'], | 296 | 'intro'=>$info['intro'], |
| 297 | 'content'=>$info['content'], | 297 | 'content'=>$info['content'], |
| 298 | 'describe'=>Arr::a2s($info['describe']), | 298 | 'describe'=>Arr::a2s($info['describe']), |
-
请 注册 或 登录 后发表评论