合并微信小程序和支付宝小程序登录入口
This commit is contained in:
@@ -95,7 +95,7 @@ public class LoginFilter implements Filter {
|
||||
return;
|
||||
}
|
||||
|
||||
//environment 环境标识 wx app 后续environment不可为空
|
||||
//environment 环境标识 wx alipay app 后续environment不可为空
|
||||
String environment = request.getHeader("environment");
|
||||
|
||||
// 判断用户TOKEN是否存在
|
||||
@@ -131,7 +131,7 @@ public class LoginFilter implements Filter {
|
||||
String userId = jsonObject1.getString("userId");
|
||||
tokenKey=RedisCst.ONLINE_APP_USER.concat(userId);
|
||||
//获取redis中的token
|
||||
}else if(environment.equals("wx")){
|
||||
}else if(environment.equals("wx") || environment.equals("alipay")){
|
||||
//获取当前登录人的用户id
|
||||
String openId = jsonObject1.getString("openId");
|
||||
if(StringUtils.isBlank(openId)){
|
||||
|
||||
Reference in New Issue
Block a user