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

This commit is contained in:
Anyon 2018-03-19 13:59:12 +08:00
parent 9e5318f2a1
commit 48c5c2fd35

View File

@ -70,7 +70,7 @@ class WechatService
'cachepath' => env('cache_path') . 'wechat' . DIRECTORY_SEPARATOR, 'cachepath' => env('cache_path') . 'wechat' . DIRECTORY_SEPARATOR,
]; ];
if (in_array(strtolower($name), ['wechat', 'config'])) { if (in_array(strtolower($name), ['wechat', 'config'])) {
$name = 'receive'; $name = 'user';
} }
$type = '\\WeChat\\' . ucfirst(strtolower($name)); $type = '\\WeChat\\' . ucfirst(strtolower($name));
return new $type($config); return new $type($config);