Wang Chen před 4 roky
rodič
revize
6ff0ef7807
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      app/Console/Commands/Push/PushTag.php

+ 4 - 1
app/Console/Commands/Push/PushTag.php

@@ -78,7 +78,10 @@ class PushTag extends Command
                 $tags   = $client->getAllTags($regId);
 
                 // # 创建tag
-                $client->addTags(PushConst::TOPIC_ALL, '全部用户');
+                $tag = PushConst::TOPIC_ALL;
+                // $client->addTags(PushConst::TOPIC_ALL, '全部用户');
+
+                $client->subscribeTags($regId, [$tag]);
 
                 // # 获取全部tag
                 $tags2 = $client->getAllTags($regId);