基于ThinkPHP5微信后台管理平台系统

汉王 整站源码 收藏

Module
--
* 简易`RBAC`权限管理(用户、权限、节点、菜单控制)
* 自建秒传文件上载组件(本地存储、七牛云存储,阿里云OSS存储)
* 基站数据服务组件(唯一随机序号、表单更新)
* `Http`服务组件(原生`CURL`封装,兼容PHP多版本)
* 微信公众号服务组件(基于[WeChatDeveloper](https://github.com/zoujingli/WeChatDeveloper),微信网页授权获取用户信息、已关注粉丝管理、自定义菜单管理等等)
* 微信商户支付服务组件(基于[WeChatDeveloper](https://github.com/zoujingli/WeChatDeveloper),支持JSAPI支付、扫码模式一支付、扫码模式二支付)
* 更多组件开发中...

Environment
---
>1. PHP 版本不低于 PHP5.6,推荐使用 PHP7 以达到最优效果;
>2. 需开启 PATHINFO,不再支持 ThinkPHP 的 URL 兼容模式运行(源于如何优雅的展示)。
* Apache

  1. <IfModule mod_rewrite.c>
  2. Options +FollowSymlinks -Multiviews
  3. RewriteEngine On
  4. RewriteCond %{REQUEST_FILENAME} !-d
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
  7. </IfModule>
* Nginx
  1. server {
  2. listen 80;
  3. server_name wealth.demo.cuci.cc;
  4. root /home/wwwroot/ThinkAdmin;
  5. index index.php index.html index.htm;
  6.  
  7. add_header X-Powered-Host $hostname;
  8. fastcgi_hide_header X-Powered-By;
  9.  
  10. if (!-e $request_filename) {
  11. rewrite ^/(.+?\.php)/?(.*)$ /$1/$2 last;
  12. rewrite ^/(.*)$ /index.php/$1 last;
  13. }
  14.  
  15. location ~ \.php($|/){
  16. fastcgi_index index.php;
  17. fastcgi_pass 127.0.0.1:9000;
  18. include fastcgi_params;
  19. set $real_script_name $fastcgi_script_name;
  20. if ($real_script_name ~ "^(.+?\.php)(/.+)$") {
  21. set $real_script_name $1;
  22. }
  23. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  24. fastcgi_param PATH_INFO $fastcgi_path_info;
  25. fastcgi_param SCRIPT_NAME $real_script_name;
  26. fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
  27. fastcgi_param PHP_VALUE open_basedir=$document_root:/tmp/:/proc/;
  28. access_log /home/wwwlog/domain_access.log access;
  29. error_log /home/wwwlog/domain_error.log error;
  30. }
  31.  
  32. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
  33. access_log off;
  34. error_log off;
  35. expires 30d;
  36. }
  37.  
  38. location ~ .*\.(js|css)?$ {
  39. access_log off;
  40. error_log off;
  41. expires 12h;
  42. }
  43. }

下载地址