正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
| @@ -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(); |
-
请 注册 或 登录 后发表评论