fix: error displaying capacity unit while editing user group
This commit is contained in:
parent
16fe5d7f7d
commit
195d747c5d
2 changed files with 1 additions and 13 deletions
|
@ -765,18 +765,6 @@ class FileManage extends Model{
|
|||
}
|
||||
}
|
||||
|
||||
public function qiniuDownload(){
|
||||
if(!$this->policyData['bucket_private']){
|
||||
$fileUrl = $this->policyData["url"].$this->fileData["pre_name"]."?attname=".urlencode($this->fileData["orign_name"]);
|
||||
return[true,$fileUrl];
|
||||
}else{
|
||||
$auth = new Auth($this->policyData["ak"], $this->policyData["sk"]);
|
||||
$baseUrl = $this->policyData["url"].$this->fileData["pre_name"]."?attname=".urlencode($this->fileData["orign_name"]);
|
||||
$signedUrl = $auth->privateDownloadUrl($baseUrl);
|
||||
return[true,$signedUrl];
|
||||
}
|
||||
}
|
||||
|
||||
public function upyunDownload(){
|
||||
return [true,$this->upyunPreview()[1]."&_upd=".urlencode($this->fileData["orign_name"])];
|
||||
}
|
||||
|
|
|
@ -174,7 +174,7 @@
|
|||
<script src="/static/js/admin/add_group.js"></script>
|
||||
<script type="text/javascript">
|
||||
$("option[value='{$group.policy_name}']").attr("selected",true);
|
||||
$("option[value='{$group.max_storage}']").attr("selected",true);
|
||||
$("option[value='{:countSize($group.max_storage,true)[1]}']").attr("selected",true);
|
||||
$("input[name='range_transfer'][value='{$group.range_transfer}']").attr("checked",true);
|
||||
$("input[name='allow_share'][value='{$group.allow_share}']").attr("checked",true);
|
||||
$("input[name='color'][value='{$group.color}']").attr("checked",true);
|
||||
|
|
Loading…
Add table
Reference in a new issue