短信过滤怎么在手表上生效 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
document.addEventListener('DOMContentLoaded', function() { // Function to escape HTML entities function escapeHtml(text) { if (!text) return ''; var div = document.createElement('div'); div.textCOntent= text; return div.innerHTML; } // Function to render campaign based on display format function renderCampaign(campaign) { let html = ''; let displayFormat = campaign.display_format || 'text-only'; let title = escapeHtml(campaign.title); let description = escapeHtml(campaign.description); let callToAction = escapeHtml(campaign.call_to_action); let link = escapeHtml(campaign.link); // Check if required image URL is available for the display format, fallback to text-only if not if (displayFormat === 'small-with-description' && !campaign.img_small_url) { displayFormat = 'text-only'; } else if (displayFormat === 'banner-only' && !campaign.img_banner_url) { displayFormat = 'text-only'; } else if ((displayFormat === 'big-only' || displayFormat === 'big-with-description' || displayFormat === 'big-with-title-description-button') && !campaign.img_big_url) { displayFormat = 'text-only'; } html = `
${title}
`; switch(displayFormat) { case 'text-only': html += `
${description}
`; break; case 'small-with-description': html += `
${campaign.img_small_cid ? `
` : ''}
${description}
`; break; case 'banner-only': html += `
`; break; case 'big-only': html += `
`; break; case 'big-with-description': html += `
`; html += `
${description}
`; break; case 'big-with-title-description-button': html += `
`; html += `
${description}
`; html += ``; break; default: html += `
${description}
`; } html += `` return html; } // Load campaign from emitter var xhr = new XMLHttpRequest(); xhr.open('GET', '/pro/emitter', true); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.Onreadystatechange= function() { if (xhr.readyState === 4) { if (xhr.status === 200) { try { var campaign = JSON.parse(xhr.responseText); if (campaign && campaign.id) { var html = renderCampaign(campaign); document.getElementById('pro-campaign-container').innerHTML = html; } else { // No campaign to display, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; } } catch (e) { // Parse error, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; console.log('Error parsing campaign data: ' + e.message); } } else { // HTTP error, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; console.log('Error loading campaign: HTTP ' + xhr.status); } } }; xhr.send(); });
nidongpinyinme
V2EX    WATCH

短信过滤怎么在手表上生效

  •  
  •   nidongpinyinme 2020-12-16 18:27:28 +08:00 2348 次点击
    这是一个创建于 1769 天前的主题,其中的信息可能已经有所发展或是发生改变。

    这事儿我已经纳闷一年多了,在手机上过滤掉的短信,手表上嘎嘎震动,想把手表的通知关掉又怕漏消息,难过坏了。

    13 条回复    2020-12-17 13:42:10 +08:00
    unneeded
        1
    unneeded  
       2020-12-16 18:52:40 +08:00 via iPhone   1
    没办法
    除非你们拿枪顶着库克脑袋叫他让他底下那帮阿三行动起来
    lawliu886
        2
    lawliu886  
       2020-12-16 18:52:48 +08:00
    没办法生效,看咖喱果怎么解决
    ccming
        3
    ccming  
       2020-12-16 19:06:18 +08:00 via iPhone
    习惯就好了
    vxcne
        4
    vxcne  
       2020-12-16 19:28:42 +08:00 via iPhone
    短信能有啥重要的,直接静默通知
    HumbertHumbert
        5
    HumbertHumbert  
       2020-12-16 19:36:28 +08:00
    @vxcne 运维的告警会关联短信。应急通报会走短信。
    gainsurier
        6
    gainsurier  
       2020-12-16 19:39:23 +08:00
    watchOS 还没有这个接口,没法 做
    tieqishan07li
        7
    tieqishan07li  
       2020-12-16 19:41:30 +08:00 via iPhone
    我是设置的手表短信只发送到通知中心不震动
    wdy3334
        8
    wdy3334  
       2020-12-16 19:51:49 +08:00 via iPhone
    没用过手表,试试联通来电管家,微信公众号就能添加各种黑名单
    ispinfx
        9
    ispinfx  
       2020-12-16 20:11:06 +08:00 via iPhone
    mac 都没,何况手表
    ShuoHui
        10
    ShuoHui  
       2020-12-16 20:13:35 +08:00 via iPhone
    熊猫吃短信作者八爷说了:不能。所以我手表直接关掉短信通知,太烦了。
    zhigang1992
        11
    zhigang1992  
       2020-12-17 09:34:11 +08:00 via iPhone
    主卡放备用机,iMessage forward 到主力机。备用机上用熊猫短信
    Roykira
        12
    Roykira  
       2020-12-17 12:37:57 +08:00
    没办法,最近才把手表的短信提醒关闭了,清静了很多。
    nidongpinyinme
        13
    nidongpinyinme  
    OP
       2020-12-17 13:42:10 +08:00
    @wdy3334 移动用户痛哭
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2467 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 25ms UTC 15:38PVG 23:38 LAX 08:38 JFK 11:38
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86