* @description 推送模态框
(options, fromToken, toToken)
| 2243 | * @description 推送模态框 |
| 2244 | */ |
| 2245 | async function pushModal(options, fromToken, toToken) { |
| 2246 | // html |
| 2247 | const html = createModal(options); |
| 2248 | // 推送 |
| 2249 | const res = await pushMessage({ |
| 2250 | title: '消息提示', |
| 2251 | content: html, |
| 2252 | fromToken, |
| 2253 | toToken, |
| 2254 | template: 'html', |
| 2255 | }); |
| 2256 | if (res && res.code === 200) { |
| 2257 | return res; |
| 2258 | } |
| 2259 | return; |
| 2260 | } |
| 2261 | /** |
| 2262 | * @description 创建随机点 |
| 2263 | * @param bounds 范围 |
no test coverage detected