Update Update.php

This commit is contained in:
Anyon 2019-07-18 15:43:43 +08:00
parent 75b0faba78
commit 3523af18b2

View File

@ -14,7 +14,7 @@
namespace app\admin\controller\api; namespace app\admin\controller\api;
use library\command\Sync as UpdateLogic; use library\command\Sync;
use library\Controller; use library\Controller;
/** /**
@ -35,7 +35,8 @@ class Update extends Controller
*/ */
public function tree() public function tree()
{ {
$this->success('获取当前文件列表成功!', UpdateLogic::build()); $sync = new Sync();
$this->success('获取当前文件列表成功!', $sync->build());
} }
/** /**
@ -52,4 +53,4 @@ class Update extends Controller
]); ]);
} }
} }