细节优化

feat/task1-c-wallet
Devil 2020-12-09 10:58:49 +08:00
parent 15827421d4
commit 0bd347c2f9
1 changed files with 4 additions and 0 deletions

View File

@ -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'=>'授权码有误'];