code: public function save(&$file, $replace = true)
      {
          $file['name'] = $file['savepath'] . $file['savename'];
          $key          = str_replace('/', '_', $file['name']);
          $upfile       = [
              'name'     => 'file',
              'fileName' => $key,
              'fileBody' => file_get_contents($file['tmp_name']),
          ];
          $config      = [];
          $result      = $this->qiniu->upload($config, $upfile);
          $url         = $this->qiniu->downlink($key);
          $file['url'] = $url;
          return false === $result ? false : true;
      }
docs: 保存指定文件
  @param  array   $file    保存的文件信息
  @param  boolean $replace 同名文件是否覆盖
  @return boolean          保存状态，true-成功，false-失败