|
...
|
...
|
@@ -251,10 +251,10 @@ class TranslateLogic extends BaseLogic |
|
|
|
'language_id'=>$this->param['language_id'],
|
|
|
|
'alias'=>$this->param['alias'],
|
|
|
|
];
|
|
|
|
$param['data'] = json_encode($this->param['data'],JSON_UNESCAPED_UNICODE);
|
|
|
|
$param['data'] = json_encode((object)$this->param['data'],JSON_UNESCAPED_UNICODE);
|
|
|
|
$this->model->add($param);
|
|
|
|
}else{
|
|
|
|
$data = json_encode($this->param['data'],JSON_UNESCAPED_UNICODE);
|
|
|
|
$data = json_encode((object)$this->param['data'],JSON_UNESCAPED_UNICODE);
|
|
|
|
$this->model->edit(['data'=>$data],['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'type'=>$this->param['type']]);
|
|
|
|
}
|
|
|
|
// }catch (\Exception $e){
|
...
|
...
|
|