|
...
|
...
|
@@ -275,7 +275,7 @@ class TranslateLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$this->param['data'] = $data;
|
|
|
|
}
|
|
|
|
// try {
|
|
|
|
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']]);
|
|
|
|
if($info === false){
|
|
|
|
$param = [
|
|
...
|
...
|
@@ -296,9 +296,9 @@ class TranslateLogic extends BaseLogic |
|
|
|
//写日志
|
|
|
|
$userLogModel = new UserLog();
|
|
|
|
$userLogModel->add(['model'=>'translate/save','remark'=>json_encode($this->param,true),'type'=>0,'operator_id'=>$this->user['id'],'project_id'=>$this->user['project_id']]);
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// $this->fail('系统错误请联系管理员');
|
|
|
|
// }
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('系统错误请联系管理员');
|
|
|
|
}
|
|
|
|
$this->handleRoute($this->param['url']);
|
|
|
|
return $this->success();
|
|
|
|
}
|
...
|
...
|
|