正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -285,9 +285,9 @@ class FileController | @@ -285,9 +285,9 @@ class FileController | ||
| 285 | * @method :post | 285 | * @method :post |
| 286 | * @time :2023/6/26 16:28 | 286 | * @time :2023/6/26 16:28 |
| 287 | */ | 287 | */ |
| 288 | - public function downLoad(){ | 288 | + public function downLoad($hash){ |
| 289 | $file_model = new File(); | 289 | $file_model = new File(); |
| 290 | - $info = $file_model->read(['hash' => $this->param['hash']]); | 290 | + $info = $file_model->read(['hash' => $hash]); |
| 291 | if ($info === false) { | 291 | if ($info === false) { |
| 292 | $this->response('指定文件不存在!', Code::USER_ERROR); | 292 | $this->response('指定文件不存在!', Code::USER_ERROR); |
| 293 | } | 293 | } |
-
请 注册 或 登录 后发表评论