## 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

4:修改主動監聽端口9999
