u
This commit is contained in:
parent
1a9d4ff1f9
commit
9926655fa9
@ -141,3 +141,5 @@
|
|||||||
* 2015-08-09
|
* 2015-08-09
|
||||||
|
|
||||||
+ version upgrade to 1.5.2
|
+ version upgrade to 1.5.2
|
||||||
|
|
||||||
|
+ oauth_redirect_uri配置属性名更改为user_oauth_redirect_uri
|
||||||
@ -32,7 +32,7 @@ public class OauthApi extends MpApi {
|
|||||||
*/
|
*/
|
||||||
public String getAuthorizeURL() {
|
public String getAuthorizeURL() {
|
||||||
String appId = DEFAULT_WEIXIN_ACCOUNT.getId();
|
String appId = DEFAULT_WEIXIN_ACCOUNT.getId();
|
||||||
String redirectUri = ConfigUtil.getValue("oauth_redirect_uri");
|
String redirectUri = ConfigUtil.getValue("user_oauth_redirect_uri");
|
||||||
return getAuthorizeURL(appId, redirectUri, "state", "snsapi_login");
|
return getAuthorizeURL(appId, redirectUri, "state", "snsapi_login");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -19,5 +19,5 @@ ca_file=/tmp/weixin4j/xxxxx.p12
|
|||||||
# classpath\u8def\u5f84\u4e0b\u53ef\u4ee5\u8fd9\u4e48\u5199
|
# classpath\u8def\u5f84\u4e0b\u53ef\u4ee5\u8fd9\u4e48\u5199
|
||||||
# ca_file=classpath:xxxxx.pfx
|
# ca_file=classpath:xxxxx.pfx
|
||||||
|
|
||||||
# oauth\u6388\u6743\u540e\u91cd\u5b9a\u5411\u7684url
|
# \u7528\u6237oauth\u6388\u6743\u540e\u91cd\u5b9a\u5411\u7684url
|
||||||
oauth_redirect_uri=
|
user_oauth_redirect_uri=
|
||||||
@ -27,7 +27,7 @@ base on netty.
|
|||||||
|
|
||||||
public class MessageServerStartup{
|
public class MessageServerStartup{
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
new WeixinServerBootstrap("appid或微信原始ID","开发者token").addHandler(
|
new WeixinServerBootstrap("token").addHandler(
|
||||||
DebugMessageHandler.global).startup();
|
DebugMessageHandler.global).startup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -36,7 +36,7 @@ base on netty.
|
|||||||
|
|
||||||
public class MessageServerStartup{
|
public class MessageServerStartup{
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
new WeixinServerBootstrap("appid","开发者token","加密密钥").addHandler(
|
new WeixinServerBootstrap("appid","token","aesKey").addHandler(
|
||||||
DebugMessageHandler.global).startup();
|
DebugMessageHandler.global).startup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user