|
...
|
...
|
@@ -58,9 +58,8 @@ class TranslateLogic extends BaseLogic |
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
$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){
|
|
|
|
$data_read = json_decode($info['data'],true);
|
|
|
|
foreach ($data_read as $k => $v){
|
|
|
|
$old_key[] = $k;
|
|
|
|
}
|
|
|
|
$arr2 = array_values(array_diff($new_key, $old_key));
|
|
...
|
...
|
@@ -108,8 +107,8 @@ class TranslateLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$new_list = $this->getUrlImageRead($this->param['url']);
|
|
|
|
$old_list = [];
|
|
|
|
$data = json_decode($info['data'],true);
|
|
|
|
foreach ($data as $k=>$v){
|
|
|
|
$data_read = json_decode($info['data'],true);
|
|
|
|
foreach ($data_read as $k=>$v){
|
|
|
|
$old_list[] = $v;
|
|
|
|
$data[] = [
|
|
|
|
$k=>$v,
|
...
|
...
|
|