ソースを参照

add:添加tag;

Wang Chen 4 年 前
コミット
89fc930cb1
1 ファイル変更3 行追加3 行削除
  1. 3 3
      app/Console/Commands/Push/PushTag.php

+ 3 - 3
app/Console/Commands/Push/PushTag.php

@@ -78,12 +78,12 @@ class PushTag extends Command
                 $tags   = $client->getAllTags($regId);
 
                 // # 创建tag
-                // $client->addTags(PushConst::TOPIC_ALL, '全部用户');
+                $client->addTags(PushConst::TOPIC_ALL, '全部用户');
 
                 // # 获取全部tag
-                // $tags2 = $client->getAllTags($regId);
+                $tags2 = $client->getAllTags($regId);
 
-                dd($tags);
+                dd($tags, $tags2);
                 break;
             // VIVO
             case PushConst::PROVIDER_VIVO: