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

Commit cdf7a02e authored by jiangxiulong's avatar jiangxiulong

userId

parent 3599cc34
......@@ -273,12 +273,22 @@ public class SweetWechatTemplateServiceImpl {
// 同步手机号
String oldAdamUserId = sweetWechatUser.getAdamUserId();
String oldAdamPhone = sweetWechatUser.getAdamPhone();
if ((!phone.isEmpty() || !userId.isEmpty()) && ((null == oldAdamUserId || oldAdamUserId.isEmpty()) || null == oldAdamPhone || oldAdamPhone.isEmpty())) {
if (null == oldAdamUserId) {
oldAdamUserId = "";
}
if (null == oldAdamPhone) {
oldAdamPhone = "";
}
if ((!phone.isEmpty() || !userId.isEmpty()) && (oldAdamUserId.isEmpty() || oldAdamPhone.isEmpty())) {
if (!phone.isEmpty()) {
sweetWechatUser.setAdamPhone(phone);
} else {
sweetWechatUser.setAdamPhone(oldAdamPhone);
}
if (!userId.isEmpty()) {
sweetWechatUser.setAdamUserId(userId);
} else {
sweetWechatUser.setAdamUserId(oldAdamUserId);
}
if (null == type || type <= 1) {
redisDataUtils.setSweetWechatUser(sweetWechatUser);
......
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