作者 lyh

gx

@@ -294,9 +294,7 @@ class TranslateLogic extends BaseLogic @@ -294,9 +294,7 @@ class TranslateLogic extends BaseLogic
294 $id = $this->model->addReturnId($param); 294 $id = $this->model->addReturnId($param);
295 TranslateData::insert(['trans_id'=>$id,'data'=>json_encode($data,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)]); 295 TranslateData::insert(['trans_id'=>$id,'data'=>json_encode($data,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)]);
296 }else{ 296 }else{
297 - if(!empty($data)){  
298 - TranslateData::where(['trans_id'=>$info['id']])->update(['data'=>json_encode($data,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)]);  
299 - } 297 + TranslateData::where(['trans_id'=>$info['id']])->update(['data'=>json_encode($data,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)]);
300 } 298 }
301 //写日志 299 //写日志
302 $userLogModel = new UserLog(); 300 $userLogModel = new UserLog();