正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -280,7 +280,7 @@ class TranslateLogic extends BaseLogic | @@ -280,7 +280,7 @@ class TranslateLogic extends BaseLogic | ||
| 280 | try { | 280 | try { |
| 281 | $info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'project_id'=>$this->user['project_id'],'type'=>$this->param['type']]); | 281 | $info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'project_id'=>$this->user['project_id'],'type'=>$this->param['type']]); |
| 282 | if($info === false){ | 282 | if($info === false){ |
| 283 | - $sourceInfo = $this->getRouteSource($this->param['url']); | 283 | + $sourceInfo = $this->getRouteSource($sendData['new_route']); |
| 284 | $param = [ | 284 | $param = [ |
| 285 | 'type'=>$this->param['type'] ?? 1, | 285 | 'type'=>$this->param['type'] ?? 1, |
| 286 | 'project_id'=>$this->user['project_id'], | 286 | 'project_id'=>$this->user['project_id'], |
| @@ -291,7 +291,7 @@ class TranslateLogic extends BaseLogic | @@ -291,7 +291,7 @@ class TranslateLogic extends BaseLogic | ||
| 291 | 'source_id'=>$sourceInfo['source_id'], | 291 | 'source_id'=>$sourceInfo['source_id'], |
| 292 | 'is_list'=>$sourceInfo['is_list'], | 292 | 'is_list'=>$sourceInfo['is_list'], |
| 293 | 'is_custom'=>$sourceInfo['is_custom'], | 293 | 'is_custom'=>$sourceInfo['is_custom'], |
| 294 | - 'page'=>$sourceInfo['page'] ?? 0 | 294 | + 'page'=>$sendData['page'] ?? 0 |
| 295 | ]; | 295 | ]; |
| 296 | $id = $this->model->addReturnId($param); | 296 | $id = $this->model->addReturnId($param); |
| 297 | TranslateData::insert(['trans_id'=>$id,'data'=>json_encode($data,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)]); | 297 | TranslateData::insert(['trans_id'=>$id,'data'=>json_encode($data,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)]); |
| @@ -331,7 +331,7 @@ class TranslateLogic extends BaseLogic | @@ -331,7 +331,7 @@ class TranslateLogic extends BaseLogic | ||
| 331 | $page = 0; | 331 | $page = 0; |
| 332 | if (is_numeric($route)) { | 332 | if (is_numeric($route)) { |
| 333 | $arr = explode('/',$routes); | 333 | $arr = explode('/',$routes); |
| 334 | - $page = $arr[1]; | 334 | + $page = $route; |
| 335 | $route = $arr[0]; | 335 | $route = $arr[0]; |
| 336 | } | 336 | } |
| 337 | $routeModel = new RouteMap(); | 337 | $routeModel = new RouteMap(); |
-
请 注册 或 登录 后发表评论