Commit 8c97962f by 孙喜旺

fix

1 parent d1f0fd69
...@@ -245,7 +245,9 @@ public class WeEmpleCodeServiceImpl extends ServiceImpl<WeEmpleCodeMapper, WeEmp ...@@ -245,7 +245,9 @@ public class WeEmpleCodeServiceImpl extends ServiceImpl<WeEmpleCodeMapper, WeEmp
.map(Long::new).toArray(Long[]::new); .map(Long::new).toArray(Long[]::new);
WeExternalContactDto qrcode = getQrcode(userIdArr, departmentIdArr); WeExternalContactDto qrcode = getQrcode(userIdArr, departmentIdArr);
//设置24小时过期 //设置24小时过期
if(qrcode !=null && qrcode.getConfig_id() != null){
redisCache.setCacheObject(WeConstans.WE_EMPLE_CODE_KEY+":"+qrcode.getConfig_id(),qrcode.getConfig_id(),24, TimeUnit.HOURS); redisCache.setCacheObject(WeConstans.WE_EMPLE_CODE_KEY+":"+qrcode.getConfig_id(),qrcode.getConfig_id(),24, TimeUnit.HOURS);
}
return qrcode; return qrcode;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!