File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 'message_type' => '',
2323 'environment'=>''
2424 ];
25-
2625 ```
2726
2827 # 全量推送
3433 ];
3534 $app_push = new AppPush($config);
3635 $app_push->send_all($content,'notify');
37-
3836 ```
3937 # 单账号推送或多账号推送
4038 > 一对一给用户发送消息 或 多个账号发送消息
4846 $account=['one'];//单账号推送
4947 $account=['one','two'];//多个账号推送
5048 $app_push->send_account($content, $account,$message_type);
51-
5249 ```
5350 # 单设备推送或多设备推送
5451 > 单或多设备推送 传递数量判断
6259 $token=['one'];//单设备推送
6360 $token=['one','two'];//多个设备推送
6461 $app_push->send_token($content, $token,$message_type);
65-
6662 ```
6763 # 标签推送
6864 > tag 字段根据开发文档 tag_items 字段 自定义
7470 | message_type | string | 默认:notify(可不传); notify:通知;message:透传消息/静默消息 |
7571 ```
7672 $app_push->send_tag($content, $tag,$message_type);
77-
7873 ```
7974
8075 # 标签绑定与解绑
9691 $operator_type = 9;
9792 $array = ['tag_token_list' => []];
9893 $app_push->set_tag($operator_type, $array = []);
99-
10094 ```
10195 # 删除标签下所有设备
10296
10599 | tag_list | array | 待删除标签列表:"tag_list": [ "test_tag_3_Ik0N0", "test_tag_2_Ik0N0"] |
106100 ```
107101 $app_push->delete_tag(['tag_list'=>[]]);
108-
109102 ```
You can’t perform that action at this time.
0 commit comments