作者 张关杰

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate

... ... @@ -37,6 +37,7 @@ class RatingLogic extends BaseLogic
'uptime'=>$this->project['uptime'],
'domain'=>$this->user['domain'],
'question'=>$this->model->list(['type'=>$this->param['type']]),
'project_id'=>$this->user['project_id']
];
return $this->success($data);
}
... ...
... ... @@ -49,6 +49,9 @@ class TranslateLogic extends BaseLogic
$new_key = $this->getUrlRead($url);
if($info === false){
$translate_list = Translate::tran($new_key, $languageInfo['short']);
if(empty($translate_list)){
$this->fail('翻译失败,请联系管理员');
}
foreach ($new_key as $k=>$v){
$data[] = [
trim($v)=>$translate_list[$k],
... ...