Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

公众号图床如何使用 #507

Open
FiyZou opened this issue Jan 6, 2025 · 1 comment
Open

公众号图床如何使用 #507

FiyZou opened this issue Jan 6, 2025 · 1 comment

Comments

@FiyZou
Copy link

FiyZou commented Jan 6, 2025

我想知道公众号图床应该怎样使用,
我现在已经有了开发者账号和密钥,但是那个代理域名我不太明白应该填什么
是需要把公众号设置里的服务器URL填写进去吗

@honwhy
Copy link
Contributor

honwhy commented Jan 11, 2025

1、代理域名的目的是转发请求,解决调用微信公众号openapi接口跨域问题。比如代理域名:https://xxx.yyy.workers.dev,那么请求https://xxx.yyy.workers.dev/cgi-bin/material/add_material?access_token=${access_token}&type=image 就会被转发到https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=${access_token}&type=image

2、要求用户有自己的代理服务器的,建议使用cloudflare部署,这里有示例代码

3、毕竟这个代理域名方式稍微有难度,建议使用浏览器插件形式,插件形式不需要代理域名。这是因为浏览器插件中请求微信公众号openapi接口不存在跨域问题。
插件获取地址 https://mpmd.pages.dev

@yanglbme yanglbme pinned this issue Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants