shizhongqi пре 4 година
родитељ
комит
7cb595fd84
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      common/components/pushNotice.php

+ 1 - 1
common/components/pushNotice.php

@@ -106,7 +106,7 @@ class pushNotice
                 ]
             ]);
             $data = json_decode($response, true);
-        }while(!isset($data['data']['token']) && $i > 3);
+        }while(!isset($data['data']['token']) && $i++ < 3);
 
         if ($i > 3) {
             return "";