|
@@ -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);
|