作者 lyh

gx

... ... @@ -285,9 +285,9 @@ class FileController
* @method :post
* @time :2023/6/26 16:28
*/
public function downLoad(){
public function downLoad($hash){
$file_model = new File();
$info = $file_model->read(['hash' => $this->param['hash']]);
$info = $file_model->read(['hash' => $hash]);
if ($info === false) {
$this->response('指定文件不存在!', Code::USER_ERROR);
}
... ...