平台可向平台的所有用户推送新文件内容,提升用户打开率和留存。推送的订阅消息只有订阅了该消息的用户可收到。
![](https://dp3na2wbqf.feishu.cn/space/api/box/stream/download/asynccode/?code=NzZlNjhjNGU4OTk4YjdhZWZjMmI3ZmQyNDZjYjIxZjhfVFU4M0UxMnhxY3RFUjM0YUV3VWdHeXQyM2YyQzAwZjBfVG9rZW46Ym94Y245U2tqb1lYMGpjOHZhRU0xMm1nTmFoXzE2NDIwNjk5NzU6MTY0MjA3MzU3NV9WNA)
### 添加推送
<table class="ace-table" data-zone-container="*" data-ace-table-col-widths="228;272"><colgroup><col width="228"><col width="272"></colgroup><tbody><tr class="ace-table-row"><td class="ace-table-cell" contenteditable="false" data-gramm="false"><div class="inner-zone-ace-editor-wrapper" data-zone-type="aceTableCell" data-ace-inner-zone-content-wrapper-zone-id="xr1a5p345y8i3zkl5bad0enecez721s03nfxc1p36onnnmde97p5h0eibd38u9wkot5vai" contenteditable="false"><div class="adit-container zoneId-xr1a5p345y8i3zkl5bad0enecez721s03nfxc1p36onnnmde97p5h0eibd38u9wkot5vai ace-editor" data-zone-id="xr1a5p345y8i3zkl5bad0enecez721s03nfxc1p36onnnmde97p5h0eibd38u9wkot5vai" data-gramm="false" style="outline: none;"><div id="magicdomid-800" class="ace-line locate lineguid-Aj6HuP" data-node="true"><div data-line-wrapper="true" dir="auto"><span class="" data-leaf="true"><span class="author-6952693016704368642 op-symbol"><span data-string="true">选择文件</span></span></span><span class="" data-leaf="true"><span data-string="true" data-enter="true">​</span></span></div></div></div></div><div class="ep-ranges ignore-dom"></div><div class="ep-cursors ignore-dom"></div></td><td class="ace-table-cell" contenteditable="false" data-gramm="false"><div class="inner-zone-ace-editor-wrapper" data-zone-type="aceTableCell" data-ace-inner-zone-content-wrapper-zone-id="xr1a5p345y8i3zkl5bad0enecez721s03nfxc1qz3ijid8r2wdwaitouwyhhchwsrlfj0f" contenteditable="false"><div class="adit-container zoneId-xr1a5p345y8i3zkl5bad0enecez721s03nfxc1qz3ijid8r2wdwaitouwyhhchwsrlfj0f ace-editor" data-zone-id="xr1a5p345y8i3zkl5bad0enecez721s03nfxc1qz3ijid8r2wdwaitouwyhhchwsrlfj0f" data-gramm="false" style="outline: none;"><div id="magicdomid-810" class="ace-line locate lineguid-qmdDdy" data-node="true"><div data-line-wrapper="true" dir="auto"><span class="" data-leaf="true"><span class="author-6952693016704368642 op-symbol"><span data-string="true">选择平台内的文件,支持输入关键词搜索</span></span></span><span class="" data-leaf="true"><span data-string="true" data-enter="true">​</span></span></div></div></div></div><div class="ep-ranges ignore-dom"></div><div class="ep-cursors ignore-dom"></div></td></tr><tr class="ace-table-row"><td class="ace-table-cell" contenteditable="false" data-gramm="false"><div class="inner-zone-ace-editor-wrapper" data-zone-type="aceTableCell" data-ace-inner-zone-content-wrapper-zone-id="xr17btb196rl3ztzg2mr48hufhdjdtiswofxc1p36onnnmde97p5h0eibd38u9wkot5vai" contenteditable="false"><div class="adit-container zoneId-xr17btb196rl3ztzg2mr48hufhdjdtiswofxc1p36onnnmde97p5h0eibd38u9wkot5vai ace-editor" data-zone-id="xr17btb196rl3ztzg2mr48hufhdjdtiswofxc1p36onnnmde97p5h0eibd38u9wkot5vai" data-gramm="false" style="outline: none;"><div id="magicdomid-620" class="ace-line locate lineguid-SCFsnr" data-node="true"><div data-line-wrapper="true" dir="auto"><span class="" data-leaf="true"><span class="author-6952693016704368642 op-symbol"><span data-string="true">推送时间</span></span></span><span class="" data-leaf="true"><span data-string="true" data-enter="true">​</span></span></div></div></div></div><div class="ep-ranges ignore-dom"></div><div class="ep-cursors ignore-dom"></div></td><td class="ace-table-cell" contenteditable="false" data-gramm="false"><div class="inner-zone-ace-editor-wrapper" data-zone-type="aceTableCell" data-ace-inner-zone-content-wrapper-zone-id="xr17btb196rl3ztzg2mr48hufhdjdtiswofxc1qz3ijid8r2wdwaitouwyhhchwsrlfj0f" contenteditable="false"><div class="adit-container zoneId-xr17btb196rl3ztzg2mr48hufhdjdtiswofxc1qz3ijid8r2wdwaitouwyhhchwsrlfj0f ace-editor" data-zone-id="xr17btb196rl3ztzg2mr48hufhdjdtiswofxc1qz3ijid8r2wdwaitouwyhhchwsrlfj0f" data-gramm="false" style="outline: none;"><div id="magicdomid-630" class="ace-line" data-node="true"><div data-line-wrapper="true" dir="auto"><span class="" data-leaf="true"><span class="author-6952693016704368642 op-symbol"><span data-string="true">选择推送给平台用户的时间</span></span></span><span class="" data-leaf="true"><span data-string="true" data-enter="true">​</span></span></div></div></div></div><div class="ep-ranges ignore-dom"></div><div class="ep-cursors ignore-dom"></div></td></tr></tbody><iframe src="//about:blank" frameborder="0" class="tb-scrollable-stunt"></iframe></table>
### 宝塔计划任务添加
用户等级到期任务:
https://你的域名/app/index.php?i=3&c=entry&m=esearch\_files&do=mobile&r=task.level
#### 文件推送订阅任务:
https://你的域名/app/index.php?i=3&c=entry&m=esearch\_files&do=mobile&r=task.notice
(访问URL-时间选择每1分钟)
红色部分修改为自己的域名和微擎uid