mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-21 22:39:16 +08:00
[更新]修复本地APi授权失败
This commit is contained in:
parent
6b3a1bc580
commit
c2ad6826a7
@ -124,7 +124,7 @@ class WechatService extends \We
|
||||
*/
|
||||
public static function instance($name, $type = 'WeChat', $config = [])
|
||||
{
|
||||
if (in_array($type, ['WePay', 'AliPay']) || "{$type}{$name}" === 'WeChatPay') {
|
||||
if (self::getType() === 'api' || in_array($type, ['WePay', 'AliPay']) || "{$type}{$name}" === 'WeChatPay') {
|
||||
if (class_exists($class = "\\{$type}\\" . ucfirst(strtolower($name)))) {
|
||||
return new $class(empty($config) ? self::config() : $config);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user