Merge branch 'tkk' into test
This commit is contained in:
@@ -118,15 +118,18 @@ public class LoginContoller {
|
||||
return loginService.wxCustomLogin(openid, "", "", "", IpUtil.getIpAddr(request));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("登录失败:",e);
|
||||
}
|
||||
}else if(AuthSource.ALIPAY.getValue().equals(source)){
|
||||
try {
|
||||
String openId = alipayUtil.getOpenId(code);
|
||||
return loginService.alipayCustomLogin(openId);
|
||||
}catch (AlipayApiException e){
|
||||
log.error("登录失败:",e);
|
||||
return Result.fail("登录失败:"+e.getErrMsg());
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
log.error("登录失败:",e);
|
||||
}
|
||||
}
|
||||
return Result.fail("登录失败");
|
||||
|
||||
Reference in New Issue
Block a user