多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 1:下载全新的业务框架 ``` git clone https://code.aliyun.com/admin1234566/group_bot.git ``` ## 2:composer安装TP核心 ``` composer install ``` ## 3:修改数据库/config/database.php|并且安装/application/install.sql ## 4:设置网站运行目录 ``` 1:设置网站运行 目录为: /public 2:nginx伪静态: location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } 2: Apache/Kangle 伪静态: <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> 2:IIS伪静态: RewriteRule (.*)$ /index\.php\?s=$1 [I] ``` ## 3:修改机器人插件 1:下载酷Q通讯组件 https://www.icloud.com/iclouddrive/0CxhytcEwGIKzKmO-Imdc\_Drw#cq-socket 2:数据格式 json 3: 地址 http://xx.xx.xx.xx/core/event ![](https://img.kancloud.cn/1c/4d/1c4da7547ec1f406547c41274ddd9a60_1050x773.png) 4:修改主动监听端口9999 ![](https://img.kancloud.cn/6a/12/6a12cad787de2870b4b6f2ca5b142847_1050x750.png)