# 客服系统thinkcmf **Repository Path**: chick/customer-service-system-thinkcmf8 ## Basic Information - **Project Name**: 客服系统thinkcmf - **Description**: 1:前端部分需要到uniapp 前端插件下载 付费产品 2:nginx需要配置api代理 和socketio 反代理。配置端口需要2个 【9620】接收和9624【转发】 3:php版本8.0 仿闲鱼客服系统VUE+uniapp前端+socketIO实时通讯 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-21 - **Last Updated**: 2023-12-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 客服系统thinkcmf #### 介绍 1:前端部分需要到uniapp 前端插件下载 付费产品 2:nginx需要配置api代理 和socketio 反代理。配置端口需要2个 【9620】接收和9624【转发】 3:php版本8.0 仿闲鱼客服系统VUE+uniapp前端+socketIO实时通讯 #### 软件架构 php版本8.0 socketIO 1.3.7 uniapp 3.7 + VUE2 #### 安装教程 1. 进入 xxx/public/web-msg-sender/ ``` 后端服务启动停止 ## Linux系统 ### 启动服务 php start.php start -d ### 停止服务 php start.php stop ### 服务状态 php start.php status ``` 2. 根目录.env 修改数据库配置 3. 端口需要开放3124 、3120。 **注意检查服务器安全组是否也开放** #### 使用说明 1. uniapp需要编译访问的主程序。 2. 目前这个版本是后台部分,前端部分需要uniapp市场下载。 #### nginx配置使用 ``` add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers *; add_header Access-Control-Allow-Methods *; location /socket.io { proxy_pass http://0.0.0.0:3120; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-Real-IP $remote_addr; } location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } location /api/ { index index.php index.html index.htm; #如果请求既不是一个文件,也不是一个目录,则执行一下重写规则 if (!-e $request_filename) { #若是子目录则使用下面这句,将subdir改成目录名称即可。 rewrite ^/api/(.*)$ /api.php?s=$1; } } ```