{"id":13604020,"url":"https://github.com/guren-cloud/weapp-one","last_synced_at":"2025-04-11T22:32:22.293Z","repository":{"id":99918964,"uuid":"137838262","full_name":"guren-cloud/weapp-one","owner":"guren-cloud","description":"ONE·一个|图文 微信小程序/开源代码 ","archived":false,"fork":false,"pushed_at":"2019-02-21T08:27:51.000Z","size":159,"stargazers_count":306,"open_issues_count":0,"forks_count":79,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-07T08:41:56.523Z","etag":null,"topics":["mina","minapp","weapp","wechat","wxapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/guren-cloud.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-06-19T04:03:59.000Z","updated_at":"2024-10-25T03:31:33.000Z","dependencies_parsed_at":"2023-05-11T02:15:07.243Z","dependency_job_id":null,"html_url":"https://github.com/guren-cloud/weapp-one","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guren-cloud%2Fweapp-one","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guren-cloud%2Fweapp-one/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guren-cloud%2Fweapp-one/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guren-cloud%2Fweapp-one/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guren-cloud","download_url":"https://codeload.github.com/guren-cloud/weapp-one/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248489835,"owners_count":21112650,"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":["mina","minapp","weapp","wechat","wxapp"],"created_at":"2024-08-01T19:00:38.266Z","updated_at":"2025-04-11T22:32:21.767Z","avatar_url":"https://github.com/guren-cloud.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# 一ONE小程序\n\n\u003e 开源版本：v2    \n\u003e https://mssnn.cn\n\n## 微信扫一扫体验\n![](https://wx5bbe79dd056cb238.mssnn.cn/v2/api/vcode?id=18)\n\n## 简介\n开源的第三方一个图文小程序，每天为你推送一张精美的照片和文字。    \n复杂的世界里，一个就够了。\n\n![](https://i.loli.net/2019/01/27/5c4c8454c5e31.jpg)\n\n## 配置域名\n小程序需要连接后端数据API+vPush推送API域名，所以需要在微信公众平台设置request域名。    \n首先，你需要开通vpush推送平台，请输入：[https://你的小程序appId.mssnn.cn](https://你的小程序appId.mssnn.cn)进行注册登陆古人云小程序控制台。   \n然后，进入[微信公众平台](https://mp.weixin.qq.com)，进入到开发-\u003e开发设置，设置域名，request里边填入如下配置：\n\n- https://one.mssnn.cn\n- https://你的小程序appId.mssnn.cn\n\n![](https://i.loli.net/2019/01/26/5c4c7e5ed9db0.jpg)\n\n## 配置小程序\n小程序，只需要你在`app.js`里配置好vpush即可。 \n很简单！点击`app.js`进行编辑，然后在vPush的初始化操作里，输入你的小程序appId即可!\n\n![](https://i.loli.net/2019/01/26/5c4c7d5e2f974.jpg)\n\n## 配置吐槽功能\n如果需要用户点击菜单的联系反馈，进入吐槽界面：\n1. 登陆吐槽官网注册：https://tucao.qq.com\n2. 替换`app.js`中的`TUCAO_ID`变量为你的吐槽产品ID\n\n如果不需要吐槽功能，点击后进入客服聊天界面，请留空\n\n## 定时推送\n进入[古人云小程序开发平台](https://mssnn.cn)，然后创建任务脚本（nodejs），模块添加`superagent`，代码复制`server_push.js`文件内容，然后时根据情况去设置啦，保持默认就是每天早上09:10进行推送。\n\n首先，创建一个推送API：\n![](https://i.loli.net/2019/01/27/5c4d3f78c0631.jpg)\n\n然后，在任务脚本里，添加模块：\n![](https://i.loli.net/2019/01/27/5c4d2d2cbd8b4.jpg)\n\n接着，粘贴代码：\n\u003e **注意：** 这里，我们需要把代码里的推送API地址+密钥，改成我们上边创建好的推送API\n\n![](https://i.loli.net/2019/01/27/5c4d2d5746573.jpg)\n\n最后，配置时间：\n![](https://i.loli.net/2019/01/27/5c4d2d6aea63f.jpg)\n\n创建完毕后，点击运行按钮，即可实现每天自动推送啦！！\n\n## 其他问题\n目前分享功能暂没完善，所以你可以参与项目一起开发。   \n推送平台来自于：[古人云小程序](https://mssnn.cn)。\n\n![](https://mssnn.cn/img/qr_gurenyun.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguren-cloud%2Fweapp-one","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguren-cloud%2Fweapp-one","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguren-cloud%2Fweapp-one/lists"}