This commit is contained in:
huangjx
2022-04-27 23:09:47 +08:00
parent acd9470a4b
commit 32b6484596
4 changed files with 9 additions and 8 deletions

View File

@@ -155,7 +155,7 @@ class MainController extends Controller
'uid' => $this->uid,
'gid' => $result,
'type' => Helper::DOWNLOADTYPE['ARIA2'],
'filename' => $filename ?? 'unknown',
'filename' => empty($filename) ? "unknown" : $filename,
'timestamp' => time(),
'data' => serialize(['link' => $url]),
];
@@ -202,7 +202,7 @@ class MainController extends Controller
*/
public function scanFolder()
{
$resp = folderScan::create()->scan();
$resp = folderScan::sync();
return new JSONResponse($resp);
}
/**