|
@@ -216,22 +216,19 @@ public class QywxUserDataService {
|
|
|
}
|
|
|
|
|
|
public void seconderyVerify(String originalJson) {
|
|
|
-// UserBaseExample example = new UserBaseExample();
|
|
|
-// example.createCriteria().andUuidEqualTo(uuid);
|
|
|
-// List<UserBase> users = userBaseMapper.selectByExample(example);
|
|
|
-// UserBase user = users.isEmpty() ? null : users.get(0);
|
|
|
-// if (user != null) {
|
|
|
-// user.setLoginStatus(Constant.LOGIN_STATUS_LOGIN_VERIFY);
|
|
|
-// userBaseMapper.updateByPrimaryKeySelective(user);
|
|
|
-// }
|
|
|
- }
|
|
|
-
|
|
|
- // 根据手机号查询用户
|
|
|
- public UserBase getUserByMobile(String mobile) {
|
|
|
+ QwCallBackWrapperData wrapperData = JSON.parseObject(originalJson, QwCallBackWrapperData.class);
|
|
|
+ if (StringUtils.isEmpty(wrapperData.getJson())) {
|
|
|
+ log.warn("Empty inner json data, uuid: {}", wrapperData.getUuid());
|
|
|
+ return;
|
|
|
+ }
|
|
|
UserBaseExample example = new UserBaseExample();
|
|
|
- example.createCriteria().andMobileEqualTo(mobile);
|
|
|
+ example.createCriteria().andUuidEqualTo(wrapperData.getUuid());
|
|
|
List<UserBase> users = userBaseMapper.selectByExample(example);
|
|
|
- return users.isEmpty() ? null : users.get(0);
|
|
|
+ UserBase user = users.isEmpty() ? null : users.get(0);
|
|
|
+ if (user != null) {
|
|
|
+ user.setLoginStatus(Constant.LOGIN_STATUS_LOGIN_VERIFY);
|
|
|
+ userBaseMapper.updateByPrimaryKeySelective(user);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 分页查询用户列表
|