{"id":18663233,"url":"https://github.com/ronething/mp-dev","last_synced_at":"2025-07-10T17:32:26.952Z","repository":{"id":40550270,"uuid":"294180632","full_name":"ronething/mp-dev","owner":"ronething","description":"golang wechat mp development","archived":false,"fork":false,"pushed_at":"2022-05-03T03:17:29.000Z","size":169,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T04:36:23.051Z","etag":null,"topics":["golang","mp","wechat"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronething.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-09T17:20:09.000Z","updated_at":"2022-05-03T03:17:16.000Z","dependencies_parsed_at":"2022-08-09T22:51:12.111Z","dependency_job_id":null,"html_url":"https://github.com/ronething/mp-dev","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ronething/mp-dev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fmp-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fmp-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fmp-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fmp-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronething","download_url":"https://codeload.github.com/ronething/mp-dev/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fmp-dev/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264619370,"owners_count":23638443,"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","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":["golang","mp","wechat"],"created_at":"2024-11-07T08:15:45.181Z","updated_at":"2025-07-10T17:32:26.935Z","avatar_url":"https://github.com/ronething.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**  *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n- [微信公众号开发](#%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7%E5%BC%80%E5%8F%91)\n- [实现思路](#%E5%AE%9E%E7%8E%B0%E6%80%9D%E8%B7%AF)\n- [使用](#%E4%BD%BF%E7%94%A8)\n- [TODO](#todo)\n- [致谢](#%E8%87%B4%E8%B0%A2)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n### 微信公众号开发\n\n- music 目前仅支持网抑云\n\n```\nusage:\n- /help # 查看帮助\n- /music/play/:sid # 播放音乐 sid 为歌曲 id\n- /music/url/:sid  # 获取音乐下载链接\n- /music/search/:keywords   # 通过关键字搜索歌曲\n- /music/search/:keywords/:page # 分页搜索歌曲\n- /music/:name # 搜索并播放歌曲 默认取第一首\n```\n\n### 实现思路\n\n[Go 语言之微信公众号开发](https://www.jianshu.com/p/ab9d10a172a0)\n\n### 使用\n\n- 依赖环境\n\n    * go 1.13+ (其他版本没有测试过)\n\n- 测试\n\n\u003e 假设你已经正确填写好配置文件\n\n```sh\ngit clone https://github.com/ronething/mp-dev.git\ncd mp-dev \u0026\u0026 make build \u0026\u0026 cd bin\n./wechat-mp -c ./example.yaml\n```\n\n测试期间可使用内网穿透,如 [ngrok](https://ngrok.com)\n\n- 部署\n\n\u003e 假设你已经正确填写好配置文件\n\u003e 并且服务器是 linux amd64 架构\n\n```sh\ngit clone https://github.com/ronething/mp-dev.git\ncd mp-dev \u0026\u0026 make deploy\n```\n\n- 体验\n\n![](./asserts/wechatsearch.png)\n\n### TODO\n\n- [x] 支持路由组 usage: /music/play/:sid\n- [ ] remind/ins\n\n### 致谢\n\n- [NeteaseCloudMusicApi](https://github.com/Binaryify/NeteaseCloudMusicApi)\n- [silenceper/wechat](https://github.com/silenceper/wechat)\n- [echo](https://github.com/labstack/echo)\n- [upx](https://github.com/upx/upx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronething%2Fmp-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronething%2Fmp-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronething%2Fmp-dev/lists"}