[更新]修改微信模式兼容

This commit is contained in:
Anyon 2018-03-19 13:56:38 +08:00
parent 9a1c040c00
commit 9e5318f2a1

View File

@ -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':