|
|
@@ -3,17 +3,19 @@
|
|
|
namespace platform\controllers;
|
|
|
|
|
|
use biz\auth\services\AuthService;
|
|
|
+use common\components\util;
|
|
|
use Yii;
|
|
|
|
|
|
class AuthController extends BaseController
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
//获取权限树 shish 2019.11.24
|
|
|
public function actionTree()
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$endId = isset($get['endId']) ? $get['endId'] : 1;
|
|
|
- AuthService::getTree($endId);
|
|
|
+ $tree = AuthService::getTree($endId);
|
|
|
+ util::success($tree);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|