fix: 添加数据库初始化到AuthController
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ namespace app\controller;
|
|||||||
|
|
||||||
use app\service\FeishuService;
|
use app\service\FeishuService;
|
||||||
use app\util\JwtUtil;
|
use app\util\JwtUtil;
|
||||||
|
use app\util\Db;
|
||||||
use app\model\User;
|
use app\model\User;
|
||||||
use app\model\Company;
|
use app\model\Company;
|
||||||
use Webman\Http\Request;
|
use Webman\Http\Request;
|
||||||
@@ -11,6 +12,11 @@ use Webman\Http\Response;
|
|||||||
|
|
||||||
class AuthController extends BaseController
|
class AuthController extends BaseController
|
||||||
{
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
Db::init();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户登录
|
* 用户登录
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user