Explorar o código

add:添加tag;

Wang Chen %!s(int64=4) %!d(string=hai) anos
pai
achega
89fc930cb1
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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: