mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-23 09:50:25 +08:00
[更新]修改微信模式兼容
This commit is contained in:
parent
9a1c040c00
commit
9e5318f2a1
@ -69,6 +69,9 @@ class WechatService
|
|||||||
'ssl_key' => sysconf('wechat_cert_key'),
|
'ssl_key' => sysconf('wechat_cert_key'),
|
||||||
'cachepath' => env('cache_path') . 'wechat' . DIRECTORY_SEPARATOR,
|
'cachepath' => env('cache_path') . 'wechat' . DIRECTORY_SEPARATOR,
|
||||||
];
|
];
|
||||||
|
if (in_array(strtolower($name), ['wechat', 'config'])) {
|
||||||
|
$name = 'receive';
|
||||||
|
}
|
||||||
$type = '\\WeChat\\' . ucfirst(strtolower($name));
|
$type = '\\WeChat\\' . ucfirst(strtolower($name));
|
||||||
return new $type($config);
|
return new $type($config);
|
||||||
case 'thr':
|
case 'thr':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user