Free and open source wechat proxy service(免费且开源的微信代理服务)

in cn •  7 years ago 

A proxy server for wechat access_token and callback messages. Auto cache access_token until expires and dispatch callback messages to multi server.

这是一个微信 access_token 代理服务器程序,他会自动缓存 access_token 还能实现微信回调消息的多路分发。

wechat-proxy

A proxy server for wechat access_token and callback messages.
Auto cache access_token until expires and dispatch callback messages to multiple server.

Simple replace:
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=SECRET
to:
https://api.weixin.ultragis.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=SECRET
and access_token can be shared by multiple process or multiple server.

Simple replace:
https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=CORPID&corpsecret=SECRET
to:
https://qyapi.weixin.ultragis.com/cgi-bin/gettoken?corpid=CORPID&corpsecret=SECRET
and access_token can be shared by multiple process or multiple server.

Set wechat callback address like this:
https://svc.weixin.ultragis.com/?call=https%3A//api.weixin.ultragis.com&call=www.ultragis.com
wechat callback message will dispatch to https://api.weixin.ultragis.com and http://www.ultragis.com

If multiple call address has been set, first none empty result will be return to wechat server.

微信代理

用于全局缓存微信 access_token 和转发微信回调消息的服务器程序。
自动缓存微信的 access_token 并将微信回调消息转发至多个后台服务器。

微信公众号
只需简单地替换 access_token 请求网址:
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=SECRET
为:
https://api.weixin.ultragis.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=SECRET
即可多个进程或多台服务器共享 access_token。

微信企业号
只需简单地替换 access_token 请求网址:
https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=CORPID&corpsecret=SECRET
为:
https://qyapi.weixin.ultragis.com/cgi-bin/gettoken?corpid=CORPID&corpsecret=SECRET
即可多个进程或多台服务器共享 access_token。

微信回调消息
设置微信回调消息网址为:
https://svc.weixin.ultragis.com/?call=https%3A//api.weixin.ultragis.com&call=www.ultragis.com
微信回调消息将自动转发给 https://api.weixin.ultragis.comhttp://www.ultragis.com

如果设置了多个 call 参数,系统会将第一个非空的请求结果返回给微信服务器。

Github: https://github.com/aiportal/wechat-proxy

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @aiportal! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post
You made your First Vote
You got a First Vote

Click on any badge to view your own Board of Honnor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @aiportal! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

The Steem community has lost an epic member! Farewell @woflhart!
SteemitBoard - Witness Update
Do not miss the coming Rocky Mountain Steem Meetup and get a new community badge!
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
  ·  7 years ago Reveal Comment