文档地址ThinkAdmin-V5文档,http://doc.thinkadmin.top/thinkadmin-v5/1201769Thinkphp5文当,https://www.kancloud.cn/manual/thinkphp5/118003github源码地址,https://github.com/zoujingli/ThinkAdmin/tree/v5layui地址,https://www.layui.com/doc/ThinkAdmin-V5演示地址,https://v5.thinkadmin.top/admin/login.html布署步骤在github下载zip源码,解压到项目目录;根据文档运行,本地开拓命令php think run,利用http://127.0.0.1:8000访问项目;本地vhost配置
server { listen 80; server_name local.thinkadmin.com; root "/usr/local/nginx/html/thinkadmin/public"; location / { index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^(.)$ /index.php?s= last; break; } } location ~ \.php(.)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; }}
碰着的问题
打印controller中的sql
打印sqlvendor/zoujingli/think-library/helper/PageHelper.php88行echo $this->query->getlastsql();exit;
AsyncCommand任务实行
linux环境须要给nginx运行权限chown www.www -R thinkadmin
表单token有时候会验证失落败

vendor/zoujingli/think-library/helper/PageHelper.php 72行list($token, $time) = [uniqid($node), time()];//把'csrf'改成$node
集成Qcloud上传
结语项目中很多的方法都是参照,thinkphp5手册,和layui文档完成。
感谢以上开源项目,欢迎互换学习。