Home >Backend Development >PHP Tutorial >PIGCMS How to turn off the chatbot, pigcms chatbot_PHP tutorial
Examples of mindless operations
1. Find the WeixinAction.class.php file, path: your version PigCmsLibActionHome
2. Query function chat and modify the return value in the chat() function
is, as follows:
return 'Dear, please wait for the customer service reply~';
3. (Optional) Finally comment out the "little yellow chicken" part (you can leave it uncommented):
•Summary: This operation will not affect the replies of other keywords in the public account. It only responds to questions that cannot be answered (originally a request for Xiaohuangji): "Dear, please wait for the customer service reply~"; if necessary Modify other operation source codes
•If you optimize it, you can do this:
First configure a unified answer (or request your own interface server), and then request the interface of the little yellow chicken when the visitor replies like "little yellow chicken"... The source code will not give an example~
Have you learned how to turn off the chatbot in PIGCMS? I hope this article can be helpful to you.