osscreatebucket返回值
Reosscreatebucket返回值
不得不看SDK的源码,解决方法如下:
resp_status = oss_create_bucket(oss_client_options, &bucket, oss_acl, &resp_headers);
/* 判断请求是否成功。*/
if (aos_status_is_ok(resp_status))
{
logit('>>>>>>create bucket succeeded!');
} else
{
logit('>>>>>>create bucket failed! error_code: %s, error_msg: %s', resp_status->error_code, resp_status->error_msg);
}
赞0
踩0