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