From c37ccd00c89f5affd278a1425a4236db5b50d644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Sat, 14 Dec 2019 22:37:53 +0800 Subject: [PATCH] Update WechatService.php --- app/wechat/service/WechatService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/wechat/service/WechatService.php b/app/wechat/service/WechatService.php index e885e3566..a2098c3b8 100644 --- a/app/wechat/service/WechatService.php +++ b/app/wechat/service/WechatService.php @@ -99,7 +99,7 @@ class WechatService extends Service throw new \think\Exception("抱歉,需要实例的 {$name} 不在符合规则!"); } if (sysconf('wechat.type') === 'api' || $type === 'WePay') { - if ($type === 'ThinkAdmin') { + if ($type === 'ThinkService') { throw new \think\Exception("抱歉,接口模式不能实例 {$classname} 对象!"); } return new $classname(self::instance()->getConfig());