From 9e5318f2a197eef97a2aac69fae249f529d84581 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 19 Mar 2018 13:56:38 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=A8=A1=E5=BC=8F=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/service/WechatService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extend/service/WechatService.php b/extend/service/WechatService.php index 40404007c..ccf2e8b57 100644 --- a/extend/service/WechatService.php +++ b/extend/service/WechatService.php @@ -69,6 +69,9 @@ class WechatService 'ssl_key' => sysconf('wechat_cert_key'), 'cachepath' => env('cache_path') . 'wechat' . DIRECTORY_SEPARATOR, ]; + if (in_array(strtolower($name), ['wechat', 'config'])) { + $name = 'receive'; + } $type = '\\WeChat\\' . ucfirst(strtolower($name)); return new $type($config); case 'thr':