This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
@Transactional | |
public Map<String, Object> loginAuth(CustomerLoginInfoDTO CustomerLoginInfoDTO) { | |
String token = IdUtils.fastUUID(); | |
try { | |
//解析微信授权后的用户信息 | |
WxUserInfoVO wxUserInfoVO = WxSignUtil.decrypt(CustomerLoginInfoDTO.getSessionKey(), CustomerLoginInfoDTO.getEncryptedData(), CustomerLoginInfoDTO.getIv()); | |
//检索用户是否存在 | |
QueryWrapper<Customer> queryWrapper = new QueryWrapper<>(); | |
// UPDATE: 添加部位NULL判断 |