public function replace($id, $key) { $oss = new AliyunOss($this->category, $this->id, $id); $img = $oss->replace($key); $img = Img::attachHost($img); return $img; }