Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大小写问题 #22

Closed
kong-qi opened this issue Apr 6, 2017 · 1 comment
Closed

大小写问题 #22

kong-qi opened this issue Apr 6, 2017 · 1 comment

Comments

@kong-qi
Copy link

kong-qi commented Apr 6, 2017

/**

  • 使用外网直接上传变量内容
  • @param string bucket名称
  • @param string 上传之后的 OSS object 名称
  • @param string 删除传的变量
  • @return boolean 上传是否成功
    */
    public static function publicUploadContent($bucketName, $ossKey, $content, $options = [])
    {
    $oss = new OSS();
    $oss->ossClient->setBucket($bucketName);
    return $oss->ossClient->uploadContent($osskey, $content, $options);//这里哦,$ossKey
    }

/**

  • 使用阿里云内网直接上传变量内容
  • @param string bucket名称
  • @param string 上传之后的 OSS object 名称
  • @param string 删除传的变量
  • @return boolean 上传是否成功
    */
    public static function privateUploadContent($bucketName, $ossKey, $content, $options = [])
    {
    $oss = new OSS(true);
    $oss->ossClient->setBucket($bucketName);
    return $oss->ossClient->uploadContent($osskey, $content, $options);
    }
@johnlui
Copy link
Owner

johnlui commented Apr 6, 2017

感谢提醒 🥇

@johnlui johnlui closed this as completed Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants