|
...
|
...
|
@@ -153,10 +153,10 @@ class LoginController extends BaseController |
|
|
|
'str.required' => '翻译字符串不能为空',
|
|
|
|
]);
|
|
|
|
$str = Translate::tran($this->param['str'], 'en') ?? '';
|
|
|
|
if(!empty($str)){
|
|
|
|
$str = strtolower($str[0]);
|
|
|
|
if(is_array($str)){
|
|
|
|
$str = $str[0];
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$str);
|
|
|
|
$this->response('success',Code::SUCCESS,strtolower($str));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|