mirror of
https://github.com/zyx0814/dzzoffice.git
synced 2025-01-05 10:27:33 +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) {
|
||||
if(json.error){
|
||||
showmessage(json.error);
|
||||
showmessage(json.error,'error',3000,1);
|
||||
}else{
|
||||
if(json.length > 0) {
|
||||
var html = '';
|
||||
@ -148,4 +148,4 @@
|
||||
}
|
||||
</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 {
|
||||
//请求成功
|
||||
if ($list = $qcos->listBuckets()) {
|
||||
foreach ($list['Buckets'][0] as $value) {
|
||||
$re[] = $value['Name'];
|
||||
if (isset($list['Buckets']) && !empty($list['Buckets'][0]['Bucket'])) {
|
||||
foreach ($list['Buckets'][0]['Bucket'] as $value) {
|
||||
$re[] = $value['Name'];
|
||||
}
|
||||
} else {
|
||||
return array('error' => 'Bucket为空!');
|
||||
}
|
||||
} else {
|
||||
return array();
|
||||
|
Loading…
Reference in New Issue
Block a user