设定OneDrive下载API请求缓存

This commit is contained in:
HFO4 2020-03-18 09:40:33 +08:00
parent f297f331f9
commit fbbae45cfa

View File

@ -54,6 +54,7 @@ export default function UploadDownload() {
share_download_session_timeout:"0",
onedrive_callback_check:"0",
reset_after_upload_failed:"0",
onedrive_source_timeout:"0",
});
const handleCheckChange = name => event => {
@ -443,6 +444,28 @@ export default function UploadDownload() {
</FormControl>
</div>
<div className={classes.form}>
<FormControl >
<InputLabel htmlFor="component-helper">
OneDrive 下载请求缓存
</InputLabel>
<Input
type={"number"}
inputProps={{
min:1,
max:3659,
step:1,
}}
value={options.onedrive_source_timeout}
onChange={handleChange("onedrive_source_timeout")}
required
/>
<FormHelperText id="component-helper-text">
OneDrive 获取文件下载 URL 后可将结果缓存减轻热门文件下载API请求频率
</FormHelperText>
</FormControl>
</div>
</div>
</div>