thinkphp5.1使用Db::connect()后,继续操作无代码提示问题

在项目的thinkphp/library/think/Db.php文件下

Db.php

添加 use think\db\Query;

connect()方法,将返回值类型修改为Query

 

posted @ 2024-05-30 18:46  大尹  阅读(28)  评论(0编辑  收藏  举报