|
...
|
...
|
@@ -265,6 +265,7 @@ class TranslateLogic extends BaseLogic |
|
|
|
$rs = $this->model->add($param);
|
|
|
|
}else{
|
|
|
|
if(!empty($data)){
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$data = json_encode($data,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
|
|
|
$rs = $this->model->edit(['data'=>$data],['language_id'=>$this->param['language_id'],'project_id'=>$this->user['project_id'],'url'=>$this->param['url'],'type'=>$this->param['type']]);
|
|
|
|
}
|
...
|
...
|
|