public function changeMime($bucket, $key, $mime) { $resource = \Qiniu\entry($bucket, $key); $encode_mime = \Qiniu\base64_urlSafeEncode($mime); $path = '/chgm/' . $resource . '/mime/' . $encode_mime; list(, $error) = $this->rsPost($path); return $error; }