|
@@ -130,7 +130,7 @@ class SettingsController extends Controller
|
|
|
//站点配置
|
|
|
DistAdminDistributor::updateInfo($request->all());
|
|
|
}
|
|
|
- return $form->response()->success('Success');
|
|
|
+ return $form->response()->success(admin_trans_label('update_success'));
|
|
|
}
|
|
|
|
|
|
public function upload()
|
|
@@ -153,7 +153,7 @@ class SettingsController extends Controller
|
|
|
$path = "{$dir}/$newName";
|
|
|
return $result
|
|
|
? $this->responseUploaded($path, $disk->url($path))
|
|
|
- : $this->responseErrorMessage('文件上传失败');
|
|
|
+ : $this->responseErrorMessage(admin_trans_label('upload_failed'));
|
|
|
}
|
|
|
|
|
|
private function removeHttpAndPort($url) {
|