fix login

back_recharge
wangyuan 2019-09-12 18:42:44 +08:00
parent 11af6398d3
commit cd0ff0e95d
1 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,7 @@ import com.ljsd.jieling.network.session.ISession;
import com.ljsd.jieling.protocols.MessageTypeProto;
import com.ljsd.jieling.protocols.PlayerInfoProto;
import com.ljsd.jieling.util.MessageUtil;
import com.ljsd.jieling.util.StringUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@ -76,7 +77,11 @@ public class LoginRequestHandler extends BaseHandler<PlayerInfoProto.LoginReques
KTEnvironmentUtil.addUserSimpleEnviromentInfo(userId,paramEnvironmentSimpleBean);
KTEnvironmentUtil.addUserEnviromentInfo(userId,paramEnvironmentBean);
int pid = Integer.valueOf(loginRequest.getChannelS());
int pid = 0;
if(!StringUtil.isEmpty(loginRequest.getChannelS())){
pid = Integer.valueOf(loginRequest.getChannelS());
}
//登陆注册入内存
String openIdFront = loginRequest.getOpenId();