|
...
|
...
|
@@ -290,9 +290,9 @@ class TranslateLogic extends BaseLogic |
|
|
|
}
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
$info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'project_id'=>$this->user['project_id'],'type'=>$this->param['type']]);
|
|
|
|
$sourceInfo = $this->getRouteSource($sendData['new_route']);
|
|
|
|
$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']]);
|
|
|
|
if($info === false){
|
|
|
|
$sourceInfo = $this->getRouteSource($sendData['new_route']);
|
|
|
|
$param = [
|
|
|
|
'type'=>$this->param['type'] ?? 1,
|
|
|
|
'project_id'=>$this->user['project_id'],
|
...
|
...
|
|