|
...
|
...
|
@@ -228,6 +228,7 @@ class TranslateLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function translateSave(){
|
|
|
|
$data = [];
|
|
|
|
if(!empty($this->param['data'])){
|
|
|
|
//处理传递的data
|
|
|
|
foreach ($this->param['data'] as $k => $v){
|
|
|
|
if(!empty($v) && is_array($v)){
|
|
...
|
...
|
@@ -236,6 +237,7 @@ class TranslateLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
$info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'type'=>$this->param['type']]);
|
|
|
|
if($info === false){
|
...
|
...
|
|