|
...
|
...
|
@@ -30,11 +30,13 @@ class ProofreadingController extends BaseController |
|
|
|
$new_list = $this->getUrlRead($this->param['url']);
|
|
|
|
if(empty($list)){
|
|
|
|
$data = [];
|
|
|
|
foreach ($new_list as $v){
|
|
|
|
$data[] = [
|
|
|
|
'text'=>$v,
|
|
|
|
'translate'=>Translate::tran($v, $countryInfo['alias']),
|
|
|
|
];
|
|
|
|
foreach ($new_list as $k => $v){
|
|
|
|
if($k < 5){
|
|
|
|
$data[] = [
|
|
|
|
'text'=>$v,
|
|
|
|
'translate'=>Translate::tran($v, $countryInfo['alias']),
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
...
|
...
|
|