疫情两年来,随着4月下旬以来近二十天的隔离,再次让我深深感受到了疫情对生活的影响,上一次隔离还是2020年2月春节前夕回家和返回JN后,其余时间基本都可以保持正常的外出和工作以及生活。
5月初,JN全面实行场所码,所有的公共场所、单位都不例外,这意味着我每天从早上上班到公司、中午出去吃饭、去超市买零食等等,都要打开健康码小程序。
正常的操作是打开手机解锁、滑动桌面、点击桌面的快捷指令、等待跳转微信小程序,尤其是使用手机不熟练的中老年人更是要先打开微信/支付宝,然后在搜索健康码,更为复杂。
所以,我在想有没有什么更快捷的方法?

看了看iOS中的快捷指令,我尝试用辅助功能 > 触控 > 轻点背面 > 打开快捷指令。
所以目前的问题是,我得创建一个快捷指令,实现打开调起微信并直接打开微信小程序健康吗。在参考了一个同类快捷指令(打开其他地区健康码),我发现需要一个参数:即小程序的 url 。
由于微信官方社区又对 URL Scheme 的有效期做了进一步限制,所以只能将目光投向支付宝小程序。详情参阅

又因为小程序 URL Scheme 必须由开发者主动申请后,我们才能根据开发者公布的 URL Scheme 进行下一步操作,所以我们只能上网查询对应小程序的 Url 才能实现上述操作,好在万能 Github 有类似的整合项目,感谢大佬们默默无闻的付出。
以下为对应小程序的Url,开源地址:JdaieLin/health-code-url-scheme: 微信/支付宝健康码小程序 url scheme收集 (github.com)
微信小程序
地区 | 健康码别名 | url scheme | 已验证可用 |
广东 | 粤康码/穗康码 | weixin://dl/business/?t=QDZVQEO2z9f | ⭕️ 2022-4-11 到期 |
四川 | 天府健康通 | weixin://dl/business/?t=Je3MKDRpAWv | ⭕️ 2022-4-11 到期 |
支付宝小程序
地区 | 健康码别名 | url scheme | 已验证可用 |
安徽 | 安康码 | alipays://platformapi/startapp?appId=2018081661065647&page=pages%2Fservice%2Fservice%3furl%3dhttps%3a%2f%2fakm.ahzwfw.gov.cn%2fakm-sj-user%2findex.html%3fbelongarea%3d340100%24%2fhome%3fbelongarea%3d340100%26auth%3dct | ✅ |
北京 北京 | 健康宝 | alipays://platformapi/startapp?appId=2021001135679870 | ✅ |
天津 | alipays://platformapi/startapp?appId=20000067&url=https%3A%2F%2Frender.alipay.com%2Fp%2Fc%2Ftianjin-jkm%2Freport.html%3ForgCode%3D120000-91330106MA27Y4U47R-p0000%26type%3Dtwocode%26needRequestCodeDetail%3DYES%26from%3Doffline%26showChooseCity%3DYES | ✅ | |
重庆 | 渝康码 | alipays://platformapi/startapp?appId=2021001130674650 | ✅ |
福建 | alipays://platformapi/startapp?appId=2021003125688065&page=pages/index/index | ✅ | |
甘肃 | 健康出行码 | alipays://platformapi/startapp?appId=20000067&url=https%3A%2F%2Fwx.jkgs.gov.cn%2Fwap%2FhealthPass%2FaliPay%2Faccess | ✅ |
广西 | alipays://platformapi/startapp?appId=68687957&url=%2Fp%2Fc%2F18j5w1jmsiqo%2Freport.html%3ForgCode%3D450000-91330106MA27Y4U47R-p0000%26type%3Dtwocode%26needRequestCodeDetail%3DYES%26from%3Doffline%26showChooseCity%3DYES | ✅ | |
贵州 | alipays://platformapi/startapp?appId=2021001135637273 | ✅ | |
海南 | alipays://platformapi/startapp?appId=2021001155692504&query=action%3Dopen%26tab%3Dcode%26source%3D%E5%9F%8E%E5%B8%82%E5%81%A5%E5%BA%B7%E7%A0%81 | ✅ | |
河北 | alipays://platformapi/startapp?appId=2021002100611022&page=pages/index/index | ✅ | |
河南 | alipays://platformapi/startapp?appId=2019091067186151&query=code%3Dalipays_ysb_jkm%26region%3D410500%26value%3Dhttps%253A%252F%252Frender.alipay.com%252Fp%252Fc%252Fhenan-jkm%252Freport.html%253ForgCode%253D410500-91330106MA27Y4U47R-p0000%2526type%253Dtwocode%2526needRequestCodeDetail%253DYES%2526from%253Doffline | ✅ | |
湖北 | alipays://platformapi/startapp?appId=2021001132656455&nbupdate=syncforce&nbversion=0.2.2003261457.6 | ✅ | |
湖南 | 健康卡 | alipays://platformapi/startapp?appId=2021002133603718 | ✅ |
吉林 | 吉祥码 | alipays://platformapi/startapp?appId=2019082066328992&page=pages%2Fqrcode%2Fqrcode | ✅ |
江苏 | 苏康码 | alipays://platformapi/startapp?appId=2018062060350751&page=%2Fpages%2Fweb%2Fweb%3Furl%3Dhttps%3A%2F%2Fjsstm.jszwfw.gov.cn%2FjkmIndex.html | ✅ |
江西 | 赣通码 | alipays://platformapi/startapp?appId=2018082161130063&page=pages%2Fh5Load%2Fh5Load%3Flightappiduuid%3D6gdemQfv%26appName%3D%E8%B5%A3%E9%80%9A%E7%A0%81%26isneeduserinfo%3D0%26spec%3D5%26lightappurl%3Dhttps%3A%2F%2Fganfutong.jiangxi.gov.cn%2Fjmopen%2Fwebapp%2Fhtml5%2Fgantongma%2Findex.html | ✅ |
内蒙古 | alipays://platformapi/startapp?appId=2021001114655676&page=pages%2fweb-view%2fweb-view%3furl%3dhttps%3a%2f%2fzwfw.nmg.gov.cn%2fapp%2ficity%2fapps%2fareas%2fneimenggu%2fcard-healthcode%2findex.html%26title%3d%e5%81%a5%e5%ba%b7%e7%a0%81%26form%3dexternal | ✅ | |
青海 | alipays://platformapi/startapp?appId=2021001143672652&query=healthqrcode | ✅ | |
山东 | alipays://platformapi/startapp?appId=2021001136608745 | ✅ | |
陕西-西安 | alipays://platformapi/startapp?appId=2021001140645628 | ✅ | |
上海 | 随申码 | alipays://platformapi/startapp?appId=2019072665939857&page=pages%2Fmy-station-type%2Fmy-station-type | ✅ |
四川 | 天府健康通 | alipays://platformapi/startapp?appId=2021002116662889 | ✅ |
新疆 | alipays://platformapi/startapp?appId=2019111269039717&page=pages%2fhealthcode%2fhealthcode_index%2fhealthcode_index | ✅ | |
云南 | alipays://platformapi/startapp?appId=2021002139686716 | ✅ | |
浙江-杭州 | alipays://platformapi/startapp?appId=20000067&url=https://h5.dingtalk.com/healthAct/index.html?source=zfbcsfw0211 | ✅ | |
全国 | alipays://platformapi/startapp?appId=20000067&url=https%3A%2F%2F68687564.h5app.alipay.com%2Fwww%2Findex.html | ✅ 需要再次点击 |
云闪付
地区 | 健康码别名 | url scheme | 已验证可用 |
全国通用 | upwallet://applet?encryptAppId=d9a62204ddad59af | ✅ |
使用方法
第一步:创建快捷指令
根据上述小程序代码找到对应地区的小程序 URL (如失效请访问此处查看最新小程序代码),然后打开快捷指令,创建新的指令,添加第一步操作指令:URL ,并粘贴对应的小程序URL地址,最后添加一步打开URT 指令即可。可以自行执行创建快捷指令是否可以实现正常跳转,第一次跳转授权对应的权限。

第二步:设置快捷方法
打开 iOS 系统设置,以此打开 辅助功能 > 触控 > 轻点背面 > (轻点两(三)下) > 打开对应快捷指令。

以上就是全部思路,在需要使用小程序的时候,只需要拿起手机,连续敲打手机背部三次,即可实现快捷操作。