使用方法:

第一步:安装附件中插件
第二步:增加返回多客服系统函数

代码片段
1 行
Application/Home/Model/WeixinModel.class.php

增加如下函数:

JavaScript
8 行
/*
         * 调用多客服系统
         */
        public function replyCustomerService() {
                $msg = array();
                
                $this->_replyData ( $msg, 'transfer_customer_service' );
        }

第三部:没有匹配到关键词就调用多客服系统

代码片段
1 行
Application/Home/Controller/WeixinController.class.php

代码片段
4 行
// 最终也无法定位到插件,终止操作
                if (! isset ( $addons [$key] ) || ! file_exists ( ONETHINK_ADDON_PATH . $addons [$key] . '/Model/WeixinAddonModel.class.php' )) {
                        return false;
                }

修改为

代码片段
4 行
// 最终也无法定位到插件,终止操作
                if (! isset ( $addons [$key] ) || ! file_exists ( ONETHINK_ADDON_PATH . $addons [$key] . '/Model/WeixinAddonModel.class.php' )) {
                        $addons [$key] = 'CustomerService';
                }

注意:本插件只适用于认证的服务号!

附件:

代码片段
1 行
http://bbs.weiphp.cn/forum.php?mod=viewthread&tid=1269&page=1&_dsign=80135400