save download path in database

This commit is contained in:
huangjx
2022-05-12 22:42:41 +08:00
parent cab95529dd
commit 02fb165405
7 changed files with 21 additions and 10 deletions

View File

@@ -158,7 +158,7 @@ class MainController extends Controller
'type' => Helper::DOWNLOADTYPE['ARIA2'],
'filename' => empty($filename) ? "unknown" : $filename,
'timestamp' => time(),
'data' => serialize(['link' => $url]),
'data' => serialize(['link' => $url,'path' => Helper::getDownloadDir()]),
];
$this->dbconn->save($data);
$resp = ['message' => $filename, 'result' => $result, 'file' => $filename];