细节优化
parent
15827421d4
commit
0bd347c2f9
|
|
@ -129,6 +129,10 @@ class Baidu
|
||||||
*/
|
*/
|
||||||
public function GetAuthSessionKey($params = [])
|
public function GetAuthSessionKey($params = [])
|
||||||
{
|
{
|
||||||
|
if(empty($this->_appkey) || empty($this->_appkey) || empty($this->_appsecret))
|
||||||
|
{
|
||||||
|
return ['status'=>-1, 'msg'=>'请先配置'];
|
||||||
|
}
|
||||||
if(empty($params['authcode']))
|
if(empty($params['authcode']))
|
||||||
{
|
{
|
||||||
return ['status'=>-1, 'msg'=>'授权码有误'];
|
return ['status'=>-1, 'msg'=>'授权码有误'];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue