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
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>* Nginx
server { listen 80; server_name wealth.demo.cuci.cc; root /home/wwwroot/ThinkAdmin; index index.php index.html index.htm; add_header X-Powered-Host $hostname; fastcgi_hide_header X-Powered-By; if (!-e $request_filename) { rewrite ^/(.+?\.php)/?(.*)$ /$1/$2 last; rewrite ^/(.*)$ /index.php/$1 last; } location ~ \.php($|/){ fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000; include fastcgi_params; set $real_script_name $fastcgi_script_name; if ($real_script_name ~ "^(.+?\.php)(/.+)$") { set $real_script_name $1; } fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_NAME $real_script_name; fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; fastcgi_param PHP_VALUE open_basedir=$document_root:/tmp/:/proc/; access_log /home/wwwlog/domain_access.log access; error_log /home/wwwlog/domain_error.log error; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { access_log off; error_log off; expires 30d; } location ~ .*\.(js|css)?$ { access_log off; error_log off; expires 12h; } }