(十四)使用阿里云oss时连接错误

连接错误: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint


增加节点参数就好

        $client = OSSClient::factory(array( 
            'AccessKeyId' => $this->config['access_key_id'], 
            'AccessKeySecret' => $this->config['access_key_secret'], 
            'Endpoint' => 'http://oss-cn-beijing.aliyuncs.com', //节点的OSS内外网地址(主要是这里节点缺失了)
           )); 

文章来自:http://blog.csdn.net/arthuralston2015/article/details/45103665
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3