提交 0bd347c2 编写于 作者: D Devil

细节优化

上级 15827421
......@@ -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'=>'授权码有误'];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册