正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -44,7 +44,7 @@ class TranslateLogic extends BaseLogic | @@ -44,7 +44,7 @@ class TranslateLogic extends BaseLogic | ||
| 44 | } | 44 | } |
| 45 | $url = $this->user['domain'].(($this->param['url'] != '/') ? $this->param['url'] : ''); | 45 | $url = $this->user['domain'].(($this->param['url'] != '/') ? $this->param['url'] : ''); |
| 46 | $languageInfo = $this->getLanguage($this->param['language_id']); | 46 | $languageInfo = $this->getLanguage($this->param['language_id']); |
| 47 | - $info = $this->model->read(['url'=>str_replace_url($this->param['url']),'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]); | 47 | + $info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]); |
| 48 | //获取当前URl的所有文本内容 | 48 | //获取当前URl的所有文本内容 |
| 49 | $new_key = $this->getUrlRead($url); | 49 | $new_key = $this->getUrlRead($url); |
| 50 | if($info === false){ | 50 | if($info === false){ |
| @@ -59,6 +59,7 @@ class TranslateLogic extends BaseLogic | @@ -59,6 +59,7 @@ class TranslateLogic extends BaseLogic | ||
| 59 | } | 59 | } |
| 60 | $old_key = [];//key值组成数据 | 60 | $old_key = [];//key值组成数据 |
| 61 | $data = json_decode($info['data'],true); | 61 | $data = json_decode($info['data'],true); |
| 62 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND); | ||
| 62 | foreach ($data as $k => $v){ | 63 | foreach ($data as $k => $v){ |
| 63 | $old_key[] = $k; | 64 | $old_key[] = $k; |
| 64 | } | 65 | } |
-
请 注册 或 登录 后发表评论