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

Commit fe1ea28f authored by jiangxiulong's avatar jiangxiulong

unionid str

parent 9dd4f308
......@@ -242,7 +242,7 @@ public class SweetWechatTemplateServiceImpl {
public boolean followStatusStr(String unionId) {
String str = redisDataUtils.getSweetWechatUserStr(unionId);
if (str.isEmpty()) {
if (null == str || str.isEmpty()) {
redisDataUtils.setSweetWechatUserStr(unionId);
return false;
} else {
......
......@@ -348,7 +348,9 @@ public class RedisDataUtils {
if (unionid.isEmpty()) {
return "";
}
return SweetConstant.REDIS_KEY_SWEET_WECHAT_USER_INFO_STR.concat(unionid);
String key = SweetConstant.REDIS_KEY_SWEET_WECHAT_USER_INFO_STR.concat(unionid);
String str = (String) redisUtil.get(key);
return str;
}
public void setSweetWechatUserStr(String unionid) {
String key = SweetConstant.REDIS_KEY_SWEET_WECHAT_USER_INFO_STR.concat(unionid);
......
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