Wang Chen 4 years ago
parent
commit
61903effa2
1 changed files with 5 additions and 2 deletions
  1. 5 2
      app/Libs/Push/VPush/VPush.php

+ 5 - 2
app/Libs/Push/VPush/VPush.php

@@ -139,7 +139,10 @@ class VPush
 
     public function getStatistics()
     {
-        
+        // token授权
+        $this->getAccessToken();
+
+
     }
 
     /**
@@ -150,7 +153,7 @@ class VPush
     private function checkParam()
     {
         // 授权token校验
-        if ($this->_accessToken) {
+        if (!$this->_accessToken) {
             $this->getAccessToken();
         }