当前位置:网站首页>[tutorial] Tencent lightweight cloud builds an online customer service chat system
[tutorial] Tencent lightweight cloud builds an online customer service chat system
2022-06-23 21:07:00 【Diligent thinking】
Preface
This time we'll continue to work , Building a whisper Online customer service system
System introduction
whisper Is an online customer service system source code , use thinkphp5+Gatewayworker To write , Strong performance . Build yourself , Control yourself , And don't worry about your data security , You can apply it to any regular website , Just add a simple paragraph js Code , You can make your website have online customer service function .
Official website :http://whisper.baiyf.com/
- Support customer service grouping , More customer service , Make your service more organized .
- Support customer service transfer , Let members receive the most professional services .
- Intelligently allocate customer traffic , Make the service more efficient .
- Greeting settings , The service was more friendly .
- View historical chat records , Facilitate supervision and summary .
- Support data trend statistics , Keep abreast of the service situation , Make the best adjustment .
Ready to build
so , I choose Tencent cloud Hong Kong, China , If there is a request to choose another region , If the demand is not large, install 1h2g Just go Point me into the
Cost effective
But the most tempting thing is this ! Campus server
Buy one for three years 150, Beauty is not true ?
install
We choose the pagoda version when we buy it
Then install PHP、Mysql、Nginx、phpmyadmin These plug-ins
2、 Pull source code Click on the website on the left , Add site
cd www/wwwroot/xx.com git clone https://gitee.com/nickbai/whisper_tp5.git
# If there is mv Tips , direct Enter that will do
mv whisper_tp5/{,.}* ./ chmod 775 ./* ./runtime/temp/*3、 Website setup
Go to domain name settings , Click on the website directory , Remove cross site attacks √, And set the running directory to public, Like a picture bed
Then add the pseudo static
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } }4、 New database Click the database on the left side of the panel , Click on phpmyadmin Enter the database management interface , newly build whisper database . And then the root directory whisper.sql File import to database , Then modify the root directory application/database.php Configuration information , Don't ask why , Hey, hey, I don't know .
# Revised as follows // Server address 'hostname' => '127.0.0.1', // Database name 'database' => 'whisper', // user name 'username' => 'root', // password 'password' => 'root', // port 'hostport' => '3306',
5、 Installation expansion Environment go php Add pcntl This expansion
6、 Start the program At this time, you need to download the server file first , Download address :whisper_server.zip, Then unzip and upload to the root directory of the website vendor Directory , Edit the following file again .
# edit vendor/GatewayWorker/Applications/whisper/Events.php file # Change the database name and password self::$db = new \Workerman\MySQL\Connection('127.0.0.1', '3306', 'root', 'pass', 'whisper');And then start the program :
# Enter the server folder cd /www/wwwroot/xx.com/vendor/GatewayWorker # Background operation php start.php start -d
Then open it in the safety of the pagoda 8282 port .
Then configure application/config.php, Make the following changes :
'socket' => '192.168.1.104:8282',
ip Fill in our server's ip.
After successful construction, the program system is xx.com, Backstage xx.com/admin, The administrator user name and password are admin, Customer service workbench xx.com/service.
Next, we go to the homepage of the program system , Click the customer service button in the lower right corner , If the following prompt appears , The installation is successful , Otherwise, please check your steps .
Finally, we will integrate online customer service into our own website .
Site use
Introduce two paragraphs on the website js that will do
<script src="http://xxx.com/static/customer/js/layer/layer.js"></script> <script src="http://xxx.com/static/customer/js/whisper-tool.js"></script>
Corresponding place , Instead, we just deployed whisper The domain name used in the event . In fact, you can also put it locally , As long as this resource can be accessed .
边栏推荐
- How to deal with unclear pictures? How to deal with color balance?
- Is it possible to transfer files on the fortress server? How to operate?
- The substring() method in. JS can be used to intercept all characters after the specified string
- JS naming conventions
- What is the process of setting up local cloud on demand? Can cloud on demand audit videos?
- CPS 22 January additional incentive rules
- [golang] quick review guide quickreview (VIII) -- goroutine
- [golang] some questions to strengthen slice
- Setinterval stop
- Customize view to imitate today's headlines and like animation!
猜你喜欢
随机推荐
【Redis】有序集合的交集与并集
Do you need a server to set up cloud on demand? What services can cloud on demand provide?
CPS 22 January additional incentive rules
Configure two databases in master-slave database mode (master and slave)
How to deal with unclear pictures? What are the techniques for taking clear pictures?
The element of display:none cannot get offsetwidth and offsetHeight
【5分钟玩转Lighthouse】快速使用长安链
Use of paging components in fusiondesign
How does the fortress machine connect to the server? Novice must know operation steps
Encryption and decryption analysis of returned data of an e-commerce app (IV)
[golang] quick review guide quickreview (II) -- slice
Spend small money to do big things: cloud function + cloud development leverages the practice of e-commerce promoting flexible architecture in CCTV evening party
How to make a material identification sheet
[golang] type conversion summary
What software is safe to use to fight new debts? What are the new bond platforms
How do I open an account? Is it safe to open an account in Guohai Securities? What do you need to bring?
Machine learning related
Emmet syntax specification
Full instructions for databinding
Development and code analysis of easycvr national standard user defined streaming address function


