|
...
|
...
|
@@ -44,7 +44,7 @@ class TranslateLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$url = $this->user['domain'].(($this->param['url'] != '/') ? $this->param['url'] : '');
|
|
|
|
$languageInfo = $this->getLanguage($this->param['language_id']);
|
|
|
|
$info = $this->model->read(['url'=>str_replace_url($this->param['url']),'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]);
|
|
|
|
$info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]);
|
|
|
|
//获取当前URl的所有文本内容
|
|
|
|
$new_key = $this->getUrlRead($url);
|
|
|
|
if($info === false){
|
|
...
|
...
|
@@ -59,6 +59,7 @@ class TranslateLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$old_key = [];//key值组成数据
|
|
|
|
$data = json_decode($info['data'],true);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
foreach ($data as $k => $v){
|
|
|
|
$old_key[] = $k;
|
|
|
|
}
|
...
|
...
|
|