Commit ec21d0bf by 徐高华

wx_user_id

parent 176c546d
...@@ -667,7 +667,11 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -667,7 +667,11 @@ public class StaffApiServiceImpl implements StaffApiService {
logger.info("没有配置secret:{}", qwDTO.getWxEnterpriseId()); logger.info("没有配置secret:{}", qwDTO.getWxEnterpriseId());
return null; return null;
} }
UserDTO user = qywxUserApiService.getSelfWorkWxUser(qwDTO.getDkCorpid(), secretSetting.getSecretVal(), relationDTO.getQwUserId()); String wxUserId = relationDTO.getQwUserId() ;
if(qwDTO.needOpenUserIdDk()) {
wxUserId = relationDTO.getOpenUserId() ;
}
UserDTO user = qywxUserApiService.getSelfWorkWxUser(qwDTO.getDkCorpid(), secretSetting.getSecretVal(), wxUserId);
if (user != null) { if (user != null) {
RedisUtil.setCache(key, user.getQr_code(), 2L, TimeUnit.DAYS); RedisUtil.setCache(key, user.getQr_code(), 2L, TimeUnit.DAYS);
resp.setResult(user.getQr_code()); resp.setResult(user.getQr_code());
......
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