weixinsaomalogin's Introduction
须知: 微信公众号申请要过很多审核,想最终成功,还需要把开发的网站申请域名 并添加到公众号中进行匹配。还要开通很多接口。过程还是很艰辛的。 不过,测试阶段可以申请测试号,不过测试号是没有微信扫码支付等接口的。 测试号的使用也是要配域名的,不过测试号上可以配假域名,若想保证可以测通,一般还需要内网穿刺命令。 这个命令工具中要配置相同域名。启动后,才可保证使用。 我当时测试的时候,内网穿刺用的是这个ngrok 此套代码测试号和正式号都可以使用 1、把WeiXinUtil中的appid和appsecret改了 2、将Controller中的public Map<String,Object> weixin()方法里的 String url 中的redirect_uri和appid改成你的。 3、需要注意的是,代码跑通后,如果是正式号,必须要在上线环境下才可测试成功。 因为redirect_uri是扫码时要访问的方法,而此方法又必须配置域名,所以。。。 4、但如果你是测试号,好像可以直接跑通,测试号开发太久远了,我已经记不清了。
weixinsaomalogin's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.