src/Qiniu/QiniuAdapter.php
public function write($path, $contents, Config $config)
    {
        list(, $error) = $this->getUploadManager()->put($this->token, $path, $contents);

        if ($error) {
            return false;
        }
        return true;
    }
public function write($path, $contents, Config $config)
    {
        list(, $error) = $this->getUploadManager()->put($this->token, $path, $contents);

        if ($error) {
            return false;
        }
        return true;
    }
写入文件

@param $file_name
@param $contents
@author yangyifan <yangyifanphp@gmail.com>