easywechat上传图片语音到七牛或阿里云

自己仿写的一个方法

    /**
     * @Author    muyuan
     * @DateTime  2018-01-09
     * @copyright [返回内容结果]
     * @license   [license]
     * @version   [version]
     * @param     string      $directory [description]
     * @param     string      $filename  [description]
     * @return    [type]                 [description]
     */
    public function saveoss(string $directory, string $filename = ”)
    {
        $this->getBody()->rewind();
        return $contents = $this->getBody()->getContents();
    }
主要是用来返回内容

0
0
Previous Article
Next Article

发表回复

Your email address will not be published. Required fields are marked *.

*
*