微信公众号登录
This commit is contained in:
parent
b7b7b56a2f
commit
c6026abb9b
|
|
@ -266,7 +266,7 @@ public class LoginServiceImpl implements ILoginService {
|
||||||
public Map<String, Object> officeLogin(Map<String, String> params) {
|
public Map<String, Object> officeLogin(Map<String, String> params) {
|
||||||
Assert.notNull(params.get("code"), "code参数缺失!");
|
Assert.notNull(params.get("code"), "code参数缺失!");
|
||||||
String code = params.get("code");
|
String code = params.get("code");
|
||||||
log.error("好好好好来了");
|
log.error("好好好好来了: " + code);
|
||||||
try {
|
try {
|
||||||
WxMpService wxMpService = WeChatUtil.official();
|
WxMpService wxMpService = WeChatUtil.official();
|
||||||
WxOAuth2AccessToken wxOAuth2AccessToken = wxMpService.getOAuth2Service().getAccessToken(code);
|
WxOAuth2AccessToken wxOAuth2AccessToken = wxMpService.getOAuth2Service().getAccessToken(code);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue