记得上下班打卡 | git大法好,push需谨慎

Commit 66e7fb49 authored by 张国柄's avatar 张国柄

fix:校验手机号、第三方账号是否已注册添加降级MDB操作;

parent 9abc7baf
......@@ -53,12 +53,12 @@ public class AdamRdmServiceImpl implements IAdamRdmService {
@Override
public boolean setUidByPlatformOpenId(String platform, String openId, String uid) {
return redisUtil.set(AdamRedisConst.IDENTITY_THIRD_PARTY.concat(platform).concat(openId), uid);
return redisUtil.set(AdamRedisConst.IDENTITY_THIRD_PARTY + platform + ":" + openId, uid);
}
@Override
public String getUidByPlatformOpenId(String platform, String openId) {
String key = AdamRedisConst.IDENTITY_THIRD_PARTY.concat(platform).concat(openId);
String key = AdamRedisConst.IDENTITY_THIRD_PARTY + platform + ":" + openId;
String val = (String) redisUtil.get(key);
if (StringUtils.isEmpty(val)) {
Query query = Query.query(Criteria.where("openId").is(openId).and("platform").is(platform).and("state").is(1));
......@@ -71,7 +71,7 @@ public class AdamRdmServiceImpl implements IAdamRdmService {
@Override
public void delUidByPlatformOpenId(String platform, String openId) {
redisUtil.del(AdamRedisConst.IDENTITY_THIRD_PARTY.concat(platform).concat(openId));
redisUtil.del(AdamRedisConst.IDENTITY_THIRD_PARTY + platform + ":" + openId);
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment