作者 lyh

gx

... ... @@ -52,8 +52,9 @@ class TranslateLogic extends BaseLogic
$info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]);
//获取当前URl的所有文本内容
$text_array = $this->getUrlRead($url);
$json_text_arr = json_encode($text_array,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
$text_array = json_decode($json_text_arr,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
if($this->user['project_id'] == 655){
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
}
// 原始校对程序
$old_key = [];//key值组成数据
$data_read = json_decode($info ? $info['data'] : '',JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
... ...