合并分支 'lyh-server' 到 'master'
Lyh server 查看合并请求 !1852
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -290,9 +290,9 @@ class TranslateLogic extends BaseLogic | @@ -290,9 +290,9 @@ class TranslateLogic extends BaseLogic | ||
| 290 | } | 290 | } |
| 291 | DB::beginTransaction(); | 291 | DB::beginTransaction(); |
| 292 | try { | 292 | try { |
| 293 | - $info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'project_id'=>$this->user['project_id'],'type'=>$this->param['type']]); | 293 | + $sourceInfo = $this->getRouteSource($sendData['new_route']); |
| 294 | + $info = $this->model->read(['language_id'=>$this->param['language_id'],'source_id'=>$sourceInfo['source_id'],'url'=>$this->param['url'],'project_id'=>$this->user['project_id'],'type'=>$this->param['type']]); | ||
| 294 | if($info === false){ | 295 | if($info === false){ |
| 295 | - $sourceInfo = $this->getRouteSource($sendData['new_route']); | ||
| 296 | $param = [ | 296 | $param = [ |
| 297 | 'type'=>$this->param['type'] ?? 1, | 297 | 'type'=>$this->param['type'] ?? 1, |
| 298 | 'project_id'=>$this->user['project_id'], | 298 | 'project_id'=>$this->user['project_id'], |
-
请 注册 或 登录 后发表评论