|
...
|
...
|
@@ -210,7 +210,7 @@ class TranslateLogic extends BaseLogic |
|
|
|
* @time :2023/6/12 10:52
|
|
|
|
*/
|
|
|
|
public function translateSave(){
|
|
|
|
try {
|
|
|
|
// try {
|
|
|
|
$info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'type'=>$this->param['type']]);
|
|
|
|
if($info === false){
|
|
|
|
$param = [
|
|
...
|
...
|
@@ -226,9 +226,9 @@ class TranslateLogic extends BaseLogic |
|
|
|
$data = json_encode($this->param['data'],true);
|
|
|
|
$this->model->edit(['data'=>$data],['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'type'=>$this->param['type']]);
|
|
|
|
}
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('系统错误请联系管理员');
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// $this->fail('系统错误请联系管理员');
|
|
|
|
// }
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|