mirror of
https://github.com/zyx0814/dzzoffice.git
synced 2025-01-07 03:16:58 +08:00
parent
3a454bbcce
commit
4c550c8b1a
@ -112,7 +112,7 @@
|
|||||||
}
|
}
|
||||||
jQuery.getJSON('{BASESCRIPT}?mod=cloud&op=oauth&do=getBucket', { id: id, key: key,region:region,bz:bz }, function(json) {
|
jQuery.getJSON('{BASESCRIPT}?mod=cloud&op=oauth&do=getBucket', { id: id, key: key,region:region,bz:bz }, function(json) {
|
||||||
if(json.error){
|
if(json.error){
|
||||||
showmessage(json.error);
|
showmessage(json.error,'error',3000,1);
|
||||||
}else{
|
}else{
|
||||||
if(json.length > 0) {
|
if(json.length > 0) {
|
||||||
var html = '';
|
var html = '';
|
||||||
@ -148,4 +148,4 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
||||||
<!--{template common/footer_simple}-->
|
<!--{template common/footer_simple}-->
|
||||||
|
@ -207,8 +207,12 @@ class io_Qcos extends io_api
|
|||||||
try {
|
try {
|
||||||
//请求成功
|
//请求成功
|
||||||
if ($list = $qcos->listBuckets()) {
|
if ($list = $qcos->listBuckets()) {
|
||||||
foreach ($list['Buckets'][0] as $value) {
|
if (isset($list['Buckets']) && !empty($list['Buckets'][0]['Bucket'])) {
|
||||||
$re[] = $value['Name'];
|
foreach ($list['Buckets'][0]['Bucket'] as $value) {
|
||||||
|
$re[] = $value['Name'];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return array('error' => 'Bucket为空!');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return array();
|
return array();
|
||||||
|
Loading…
Reference in New Issue
Block a user