优化 auth 单例获取用户,防止多次查询

This commit is contained in:
JaguarJack
2020-05-23 11:10:28 +08:00
parent 167ea743a0
commit fa04341608
2 changed files with 32 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
<?php
namespace catchAdmin\cms\controller;
use catcher\base\CatchController;
use catcher\CatchResponse;
class TestController extends CatchController
{
public function index()
{
return CatchResponse::success('Hello CatchAdmin');
}
}