{"id":20457509,"url":"https://github.com/mengkunsoft/oneqrcode","last_synced_at":"2025-07-27T14:33:47.041Z","repository":{"id":45698461,"uuid":"149943293","full_name":"mengkunsoft/OneQRCode","owner":"mengkunsoft","description":"📱 微信、支付宝、QQ 三合一收款二维码（单文件版）","archived":false,"fork":false,"pushed_at":"2020-07-20T11:59:00.000Z","size":75,"stargazers_count":382,"open_issues_count":1,"forks_count":179,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-29T13:39:48.659Z","etag":null,"topics":["pay","qrcode"],"latest_commit_sha":null,"homepage":"http://lab.mkblog.cn/oneqrcode/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mengkunsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-23T03:04:08.000Z","updated_at":"2025-04-09T14:43:42.000Z","dependencies_parsed_at":"2022-09-09T03:01:10.836Z","dependency_job_id":null,"html_url":"https://github.com/mengkunsoft/OneQRCode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mengkunsoft/OneQRCode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengkunsoft%2FOneQRCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengkunsoft%2FOneQRCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengkunsoft%2FOneQRCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengkunsoft%2FOneQRCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mengkunsoft","download_url":"https://codeload.github.com/mengkunsoft/OneQRCode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengkunsoft%2FOneQRCode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267370630,"owners_count":24076461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pay","qrcode"],"created_at":"2024-11-15T12:07:29.335Z","updated_at":"2025-07-27T14:33:47.001Z","avatar_url":"https://github.com/mengkunsoft.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneQRCode\n\n微信、支付宝、QQ 三合一收款二维码，单文件版\n\n![](https://img.shields.io/github/issues/mengkunsoft/OneQRCode.svg?style=flat-square) ![](https://img.shields.io/github/forks/mengkunsoft/OneQRCode.svg?style=flat-square) ![](https://img.shields.io/github/stars/mengkunsoft/OneQRCode.svg?style=flat-square) ![](https://img.shields.io/github/license/mengkunsoft/OneQRCode.svg?style=flat-square)\n\n## 特点\n \n - 纯前端实现，无需安装，无需数据库；\n - 免维护，无任何多余的配置，只需修改收款链接，即可永久使用。\n\n## 使用方法\n \n 1. [点击下载](https://github.com/mengkunsoft/OneQRCode/archive/master.zip) 本项目代码到本地；\n 2. 打开  `index.html`，将里面的收款码链接修改成你自己的；\n 3. 将 `index.html` 上传至你的网站空间，即可开始使用！\n\n## 注意事项\n\n - 请用专门的 HTML 编辑器（如 VS Code）编辑代码，切勿直接用记事本编辑，否则可能出现中文乱码！\n - 本作品禁止任何形式的倒卖，转载请注明出处。\n\n## 原理\n在 微信、支付宝、QQ 中扫描到一个网址二维码后，一般会通过内置的浏览器打开这个网址。通过判断内置浏览器的 UA，即可得出当前扫码的具体支付平台。\n\n````\nif(navigator.userAgent.match(/Alipay/i)) {\n    // 支付宝\n} else if(navigator.userAgent.match(/MicroMessenger\\//i)) {\n    // 微信\n} else if(navigator.userAgent.match(/QQ\\//i)) {\n    // QQ\n} else {\n    // 其它\n}\n````\n\n其中，支付宝可以通过直接跳转收款链接唤起付款功能，而 QQ、微信 则需展示出对应的收款码，由用户自行长按识别真正的收款二维码实现唤起付款。\n\n详细请阅读：\n\n[多合一收款二维码原理及实现](https://mkblog.cn/922/)\n\n[更多使用说明请查阅项目wiki](https://github.com/mengkunsoft/OneQRCode/wiki)\n\n在线演示：\n\nhttp://lab.mkblog.cn/oneqrcode/\n\n# License\n\n````\nMIT License\n\nCopyright (c) 2018 mengkun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengkunsoft%2Foneqrcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmengkunsoft%2Foneqrcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengkunsoft%2Foneqrcode/lists"}