(十四)使用阿里云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内外网地址(主要是这里节点缺失了)
           )); 

你可能感兴趣的:(PHP)