作者 lyh

gx

@@ -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 }