Wang Chen 4 年之前
父节点
当前提交
61903effa2
共有 1 个文件被更改,包括 5 次插入2 次删除
  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();
         }