正在显示
1 个修改的文件
包含
1 行增加
和
4 行删除
| @@ -682,10 +682,7 @@ class ProductController extends BaseController | @@ -682,10 +682,7 @@ class ProductController extends BaseController | ||
| 682 | $detailModel = new Detail(); | 682 | $detailModel = new Detail(); |
| 683 | $detailInfo = $detailModel->read(['column_id'=>1]); | 683 | $detailInfo = $detailModel->read(['column_id'=>1]); |
| 684 | if($detailInfo !== false && !empty($detailInfo['content'])){ | 684 | if($detailInfo !== false && !empty($detailInfo['content'])){ |
| 685 | - $contentData = json_decode($detailInfo['content'],true); | ||
| 686 | - if(!empty($contentData['content'])){ | ||
| 687 | - $productInfo['content'] = $new_content . $contentData['content']; | ||
| 688 | - } | 685 | + $productInfo['content'] = $new_content . $detailInfo['content']['content']; |
| 689 | } | 686 | } |
| 690 | } | 687 | } |
| 691 | $this->response('success',Code::SUCCESS,$productInfo); | 688 | $this->response('success',Code::SUCCESS,$productInfo); |
-
请 注册 或 登录 后发表评论