From 20194ac144c9287a8cc5d5863a2873c58ddce386 Mon Sep 17 00:00:00 2001 From: coeus Date: Wed, 30 Oct 2019 23:22:54 +0800 Subject: [PATCH] fix qq unionid --- src/Gateways/Qq.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gateways/Qq.php b/src/Gateways/Qq.php index 7962b95..6d6a3f6 100644 --- a/src/Gateways/Qq.php +++ b/src/Gateways/Qq.php @@ -60,7 +60,7 @@ public function openid() if (!isset($this->token['openid']) || !$this->token['openid']) { $userID = $this->getOpenID(); $this->token['openid'] = $userID['openid']; - $this->token['unionid'] = isset($userID['unionid']) ?: ''; + $this->token['unionid'] = isset($userID['unionid']) ? $userID['unionid'] : ''; } return $this->token['openid'];