diff --git a/src/exception/ThinkException.php b/src/exception/ThinkException.php index 320bd095dff568d03f0c99884ec0aa49534832a9..5cd3cce97ad6c4db3cec2730aea502a15abdb2ba 100644 --- a/src/exception/ThinkException.php +++ b/src/exception/ThinkException.php @@ -73,7 +73,7 @@ class ThinkException extends Handle } if (!empty($nt) && $nt == 'wechat') { $openid = config('dtapp.exception.wechat.openid', ''); - if (!empty($access_token)) return HttpService::instance() + if (!empty($openid)) return HttpService::instance() ->url("https://api.dtapp.net/v1/wechatmp/tmplmsgWebError/openid/{$openid}") ->post() ->data([