图集1/3

正文 1139字数 1,218,354阅读

使用方法:

第一步:安装附件中插件
第二步:增加返回多客服系统函数
Application/Home/Model/WeixinModel.class.php
Run code
Cut to clipboard
    增加如下函数:
    /* * 调用多客服系统 */ public function replyCustomerService() { $msg = array(); $this->_replyData ( $msg, 'transfer_customer_service' ); }
    Run code
    Cut to clipboard


      第三部:没有匹配到关键词就调用多客服系统
      Application/Home/Controller/WeixinController.class.php
      Run code
      Cut to clipboard

        // 最终也无法定位到插件,终止操作 if (! isset ( $addons [$key] ) || ! file_exists ( ONETHINK_ADDON_PATH . $addons [$key] . '/Model/WeixinAddonModel.class.php' )) { return false; }
        Run code
        Cut to clipboard


          修改为
          // 最终也无法定位到插件,终止操作 if (! isset ( $addons [$key] ) || ! file_exists ( ONETHINK_ADDON_PATH . $addons [$key] . '/Model/WeixinAddonModel.class.php' )) { $addons [$key] = 'CustomerService'; }
          Run code
          Cut to clipboard


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


            附件:upload/attach/tbs-I0fiZSKKHT.rar

            http://bbs.weiphp.cn/forum.php?mod=viewthread&tid=1269&page=1&_dsign=80135400
            Run code
            Cut to clipboard