From 0bd347c2f972d9c1b93e1b1526dfb5a3ac691e93 Mon Sep 17 00:00:00 2001 From: Devil Date: Wed, 9 Dec 2020 10:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/Baidu.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extend/base/Baidu.php b/extend/base/Baidu.php index 2fc047c4e..cf907e498 100755 --- a/extend/base/Baidu.php +++ b/extend/base/Baidu.php @@ -129,6 +129,10 @@ class Baidu */ public function GetAuthSessionKey($params = []) { + if(empty($this->_appkey) || empty($this->_appkey) || empty($this->_appsecret)) + { + return ['status'=>-1, 'msg'=>'请先配置']; + } if(empty($params['authcode'])) { return ['status'=>-1, 'msg'=>'授权码有误'];