感谢likeadmin作者,此项目基于likeadmin的thinkphp6版本修改而来
likeadmin文档地址:https://www.likeadmin.cn/
后端git地址:https://gitee.com/MuZJun/gather-admin.git
前端git地址:https://gitee.com/MuZJun/gather-vue.git
thinkphp6多应用请求接口/admin/auth.admin/myself,但是webman不是这样请求的,需要改成/admin/auth/admin/myself(其他接口也是这样)
前端配置复制.env.development.example成文件.env.development
NODE_ENV = 'development'
# Base API
VITE_APP_BASE_URL='http://127.0.0.1:8787' //这里为你后端请求接口地址
特点
更新
棒!!!
插个眼,等更新
该怎么运行该项目呢
前端文档中有说明,后端webman php start.php start
你还缺个sql文件
sql去likeadmin官网有,一样的,不要文章这些就删除哪些表就行
登录的时候报错
http://127.0.0.1:8787/admin/auth.admin/mySelf
请求的这个地址有问题,是我哪儿没有配置对吗tp你的地址,webman不能这样请求
http://127.0.0.1:8787/admin/auth/admin/mySelf
改成这样就行
这个我昨天改过是可行的,主要是不想改前端的代码,想看看能不能改webman实现。。。
等会上传前端git地址
6666
可能还有问题,有问题大家可以提
8 E:\MyProject\vue3+webman+likeadmin\adminPHP\vendor\workerman\workerman\Worker.php(2467): Workerman\Events\Select->loop()
9 E:\MyProject\vue3+webman+likeadmin\adminPHP\vendor\workerman\workerman\Worker.php(1453): Workerman\Worker->run()
10 E:\MyProject\vue3+webman+likeadmin\adminPHP\vendor\workerman\workerman\Worker.php(1396): Workerman\Worker::forkWorkersForWindows()
11 E:\MyProject\vue3+webman+likeadmin\adminPHP\vendor\workerman\workerman\Worker.php(560): Workerman\Worker::forkWorkers()
12 E:\MyProject\vue3+webman+likeadmin\adminPHP\vendor\workerman\webman-framework\src\support\App.php(124): Workerman\Worker::runAll()
13 E:\MyProject\vue3+webman+likeadmin\adminPHP\start.php(4): support\App::run()
14 {main}
E:\MyProject\vue3+webman+likeadmin\adminPHP>
怎么解决?
可以了,设置redis密码没找对地方
好的
接口路由改成适配user.user/detail这种格式就好了
那就要去修改webman的路由
这个支持curd生成代码吗
现在暂时没有做
但是likeadmin官网有,你可以拿过来就行
嗯嗯,感谢你,感谢likeadmin作者
插个眼,等更新
大佬你好,我想问下这个版本和官方tp6版本的likeadmin相比还有哪些功能没做呀,目前这个版本有用到生产环境上吗
https://gitee.com/suyibk/workman-likeadmin-all.git
我这个版本已经再生成环境用了 install自动安装模块没有其他基本都有了
插个眼,等更新!
likeadmin快一年 没有更新,有没有 更详细的文档,能让 小白 轻松上车的。
mark
https://gitee.com/suyibk/workman-likeadmin-all.git
改进了些+微信开发包+redis队列+慢链接方案+代码生成器
{
"code": 500,
"msg": "PDO::__construct(): Argument #2 ($username) must be of type ?string, bool given",
"traces": "TypeError: PDO::__construct(): Argument #2 ($username) must be of type ?string, bool given in /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/PDOConnection.php:594\nStack trace:\n#0 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/PDOConnection.php(594): PDO->__construct()\n#1 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/PDOConnection.php(555): think\db\PDOConnection->createPdo()\n#2 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/PDOConnection.php(1705): think\db\PDOConnection->connect()\n#3 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/PDOConnection.php(753): think\db\PDOConnection->initConnect()\n#4 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/connector/Mysql.php(66): think\db\PDOConnection->getPDOStatement()\n#5 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/PDOConnection.php(422): think\db\connector\Mysql->getFields()\n#6 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/PDOConnection.php(362): think\db\PDOConnection->getTableFieldsInfo()\n#7 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/PDOConnection.php(409): think\db\PDOConnection->getSchemaInfo()\n#8 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/PDOConnection.php(493): think\db\PDOConnection->getTableInfo()\n#9 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php(58): think\db\PDOConnection->getFieldsType()\n#10 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php(69): think\db\Query->getFieldsType()\n#11 [internal function]: think\db\Query->getFieldType()\n#12 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/Model.php(1045): call_user_func_array()\n#13 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/model/concern/TimeStamp.php(73): think\Model->__call()\n#14 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/model/concern/TimeStamp.php(54): think\Model->checkTimeFieldType()\n#15 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/DbManager.php(106): think\Model->isAutoWriteTimestamp()\n#16 [internal function]: think\DbManager->think\{closure}()\n#17 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/Model.php(242): call_user_func()\n#18 /www/wwwroot/console/gather-admin-master/vendor/topthink/think-orm/src/Model.php(1054): think\Model->__construct()\n#19 /www/wwwroot/console/gather-admin-master/app/common/cache/AdminTokenCache.php(53): think\Model::__callStatic()\n#20 /www/wwwroot/console/gather-admin-master/app/common/cache/AdminTokenCache.php(33): app\common\cache\AdminTokenCache->setAdminInfo()\n#21 /www/wwwroot/console/gather-admin-master/app/admin/middleware/LoginMiddleware.php(38): app\common\cache\AdminTokenCache->getAdminInfo()\n#22 /www/wwwroot/console/gather-admin-master/vendor/workerman/webman-framework/src/App.php(311): app\admin\middleware\LoginMiddleware->process()\n#23 /www/wwwroot/console/gather-admin-master/app/admin/middleware/InitMiddleware.php(33): Webman\App::Webman\{closure}()\n#24 /www/wwwroot/console/gather-admin-master/vendor/workerman/webman-framework/src/App.php(311): app\admin\middleware\InitMiddleware->process()\n#25 /www/wwwroot/console/gather-admin-master/app/common/http/middleware/AdminAllowMiddleware.php(41): Webman\App::Webman\{closure}()\n#26 /www/wwwroot/console/gather-admin-master/vendor/workerman/webman-framework/src/App.php(311): app\common\http\middleware\AdminAllowMiddleware->process()\n#27 /www/wwwroot/console/gather-admin-master/vendor/workerman/webman-framework/src/App.php(122): Webman\App::Webman\{closure}()\n#28 /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Connection/TcpConnection.php(646): Webman\App->onMessage()\n#29 /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Events/Select.php(311): Workerman\Connection\TcpConnection->baseRead()\n#30 /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php(2467): Workerman\Events\Select->loop()\n#31 /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php(1578): Workerman\Worker->run()\n#32 /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php(1420): Workerman\Worker::forkOneWorkerForLinux()\n#33 /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php(1394): Workerman\Worker::forkWorkersForLinux()\n#34 /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php(560): Workerman\Worker::forkWorkers()\n#35 /www/wwwroot/console/gather-admin-master/vendor/workerman/webman-framework/src/support/App.php(124): Workerman\Worker::runAll()\n#36 /www/wwwroot/console/gather-admin-master/start.php(4): support\App::run()\n#37 {main}"
}一直是这个错误
stream_socket_server(): Unable to connect to tcp://0.0.0.0:8787 (Address already in use) in file /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php on line 2294
PHP Fatal error: Uncaught Exception: Address already in use in /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php:2296
Stack trace:
0 /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php(700): Workerman\Worker->listen()
1 /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php(555): Workerman\Worker::initWorkers()
2 /www/wwwroot/console/gather-admin-master/vendor/workerman/webman-framework/src/support/App.php(124): Workerman\Worker::runAll()
3 /www/wwwroot/console/gather-admin-master/start.php(4): support\App::run()
4 {main}
thrown in /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php on line 2296
Fatal error: Uncaught Exception: Address already in use in /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php on line 2296
Exception: Address already in use in /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php on line 2296
Call Stack:
0.0002 389160 1. {main}() /www/wwwroot/console/gather-admin-master/start.php:0
0.0075 807744 2. support\App::run() /www/wwwroot/console/gather-admin-master/start.php:4
0.0553 1837456 3. Workerman\Worker::runAll() /www/wwwroot/console/gather-admin-master/vendor/workerman/webman-framework/src/support/App.php:124
0.0560 1874608 4. Workerman\Worker::initWorkers() /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php:555
0.0561 1874688 5. Workerman\Worker->listen() /www/wwwroot/console/gather-admin-master/vendor/workerman/workerman/Worker.php:700
这个跟官方的admin有何不同?
官方的是 vue+thinkphp 楼主这个是 vue+webman 主要是更换了后台
好奇怪。 明明已经配置了后台接口路径了。 而且 直接访问接口 是可以访问有数据的, 但是前端项目还是有报错。
http://127.0.0.1:8787/admin/config/getConfig 是有数据的
前端接口配置成 http://127.0.0.1:8787 也是不行的 404错误
噢噢噢 知道原因了,vue的evn 环境配置 名字应该是 .env.development 我没去掉后缀