正在显示
1 个修改的文件
包含
6 行增加
和
4 行删除
| @@ -142,10 +142,12 @@ class TicketUploadDataLogic extends BaseLogic | @@ -142,10 +142,12 @@ class TicketUploadDataLogic extends BaseLogic | ||
| 142 | if($info === false){ | 142 | if($info === false){ |
| 143 | $this->fail('当前数据不存在或已被删除'); | 143 | $this->fail('当前数据不存在或已被删除'); |
| 144 | } | 144 | } |
| 145 | - ProjectServer::useProject($info['project_id']); | ||
| 146 | - $info['text']['cate_name'] = $this->cateText($info['type'],$info['text']['category_id'] ?? [],$info['text']['keyword_id'] ?? [],true); | ||
| 147 | - $info = $this->getHandleFileImage($info); | ||
| 148 | - DB::disconnect('custom_mysql'); | 145 | + if($info['project_type'] == $this->model::TYPE_SIX){ |
| 146 | + ProjectServer::useProject($info['project_id']); | ||
| 147 | + $info['text']['cate_name'] = $this->cateText($info['type'],$info['text']['category_id'] ?? [],$info['text']['keyword_id'] ?? [],true); | ||
| 148 | + $info = $this->getHandleFileImage($info); | ||
| 149 | + DB::disconnect('custom_mysql'); | ||
| 150 | + } | ||
| 149 | return $this->success($info); | 151 | return $this->success($info); |
| 150 | } | 152 | } |
| 151 | 153 |
-
请 注册 或 登录 后发表评论