{"id":20054098,"url":"https://github.com/topjohncian/cloudreve-epay","last_synced_at":"2025-06-14T19:32:46.027Z","repository":{"id":65925321,"uuid":"602594276","full_name":"topjohncian/cloudreve-epay","owner":"topjohncian","description":"Cloudreve Pro 易支付 支持 (点个 Star 不迷路~)","archived":false,"fork":false,"pushed_at":"2025-01-04T12:23:20.000Z","size":59,"stargazers_count":59,"open_issues_count":5,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T13:41:37.526Z","etag":null,"topics":["cloudreve","epay","payment"],"latest_commit_sha":null,"homepage":"","language":"Go","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/topjohncian.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-16T14:42:44.000Z","updated_at":"2025-04-19T14:08:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3099367-d81d-4bbb-9a12-8e16b6403a0a","html_url":"https://github.com/topjohncian/cloudreve-epay","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/topjohncian/cloudreve-epay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topjohncian%2Fcloudreve-epay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topjohncian%2Fcloudreve-epay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topjohncian%2Fcloudreve-epay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topjohncian%2Fcloudreve-epay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/topjohncian","download_url":"https://codeload.github.com/topjohncian/cloudreve-epay/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topjohncian%2Fcloudreve-epay/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259870775,"owners_count":22924586,"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":["cloudreve","epay","payment"],"created_at":"2024-11-13T12:32:32.080Z","updated_at":"2025-06-14T19:32:46.003Z","avatar_url":"https://github.com/topjohncian.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudreve 易支付网关\n\n需要更新到 Pro 3.7.1 才可正常使用\n\n## 点点 Star 不迷路 ❤ 有问题请发 Issue 😭\n\n## 注意事项\n\n1. 一定更新到 Pro 3.7.1\n2. 最好启用 Redis，否则使用内存缓存的话，一旦程序终止，支付将永远无法回调 （后续改进）\n3. 已修复，请使用 `-eject` 参数导出模板 ~~目前支付模板是硬编码字符串拼接，可能造成 XSS （后续改进）~~\n4. 已支持，请设置 `CR_EPAY_EPAY_PURCHASE_TYPE` ~~目前只会默认调用支付宝，建议选择有自己可以选择支付方式的收银台的易支付~~\n\n## 部署\n\n1. 下载 Releases 中对应系统和架构类型的二进制可执行文件\n2. 复制 .env.example 到 .env\n3. 根据注释修改配置文件\n4. 启动程序，以部署Cloudreve的相同方式部署本程序\n\n```env\n# 是否启用debug模式\nCR_EPAY_DEBUG=true\n# 监听端口，TLS 请使用其他服务器进行反代\nCR_EPAY_LISTEN=:4560\n# 后台 - 增值服务 - 通信密钥 建议随机生成uuid 请务必保密 https://www.uuidgenerator.net/\nCR_EPAY_CLOUDREVE_KEY=\n# 本站点的外部访问 URL\nCR_EPAY_BASE=https://payment.cloudreve.dev\n# 自定义订单名称\n# CR_EPAY_CUSTOM_NAME=TESTTTTT\n# 商家ID\nCR_EPAY_EPAY_PARTNER_ID=1010\n# 商家密钥\nCR_EPAY_EPAY_KEY=SFDHSKHFJKDSHEUIFHU\n# 更换成你的易支付网关\nCR_EPAY_EPAY_ENDPOINT=https://payment.moe/submit.php\n# 支付方式 wxpay 或 alipay\nCR_EPAY_EPAY_PURCHASE_TYPE=alipay\n# 是否启用redis 请务必启用\nCR_EPAY_REDIS_ENABLED=true\nCR_EPAY_REDIS_SERVER=localhost:6379\n# CR_EPAY_REDIS_PASSWORD=\nCR_EPAY_REDIS_DB=0\n```\n\n## 设置\n\n1. 打开 Cloudreve 后台，打开 `参数设置` `增值服务`\n2. 开启 `自定义付款渠道`\n3. 填入 `付款方式名称`\n4. `通讯密钥填入` 上一步 `CR_EPAY_CLOUDREVE_KEY` 的值\n5. `支付接口地址` 填入 上一步 `CR_EPAY_BASE` 的值 加上 `/cloudreve/purchase`\n6. 保存设置\n\n## CHANGELOG\n\n### 0.2\n\n- 修复易支付自定义付款方式，`CR_EPAY_EPAY_PURCHASE_TYPE`\n- 支持自定义商品名称\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopjohncian%2Fcloudreve-epay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopjohncian%2Fcloudreve-epay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopjohncian%2Fcloudreve-epay/lists"}