|
|
@@ -62,7 +62,7 @@ public class CorpUserFrontServiceImpl implements CorpUserFrontService {
|
|
|
UserBindDetail bindDetail = userBindDetailMapper.selectOne(Wrappers.lambdaQuery(UserBindDetail.class)
|
|
|
.and(qr -> qr.eq(UserBindDetail::getPhoneUserId, user.getId()).or().eq(UserBindDetail::getEmailUserId, user.getId()))
|
|
|
.last("limit 1"));
|
|
|
- if (bindDetail.getUserId() != null) {
|
|
|
+ if (bindDetail != null && bindDetail.getUserId() != null) {
|
|
|
User wxUser = userMapper.selectById(bindDetail.getUserId());
|
|
|
if (wxUser != null) {
|
|
|
unionId = wxUser.getUnionid();
|