refactor: 使用官方support\Db和support\Model
- 创建 support/Db.php 和 support/Model.php - 在 bootstrap.php 中自动初始化数据库 - 移除 app/util/Db.php - 更新所有模型和控制器使用官方类 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,6 @@ namespace app\controller;
|
||||
|
||||
use app\service\FeishuService;
|
||||
use app\util\JwtUtil;
|
||||
use app\util\Db;
|
||||
use app\model\User;
|
||||
use app\model\Company;
|
||||
use Webman\Http\Request;
|
||||
@@ -12,11 +11,6 @@ use Webman\Http\Response;
|
||||
|
||||
class AuthController extends BaseController
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
Db::init();
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户登录
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user