Browse Source

修改yml

lwx_dev
erdanergou 2 years ago
parent
commit
b9ab605e6e
  1. 4
      src/main/java/com/dreamchaser/depository_manage/controller/QyWxOperationController.java

4
src/main/java/com/dreamchaser/depository_manage/controller/QyWxOperationController.java

@ -271,11 +271,13 @@ public class QyWxOperationController {
// Map<String, Object> portInfo = PublicConfig.findUserByQyWxUserId(userId); // Map<String, Object> portInfo = PublicConfig.findUserByQyWxUserId(userId);
// UserByPort userByPort = (UserByPort) portInfo.get("user"); // UserByPort userByPort = (UserByPort) portInfo.get("user");
UserByPort userByPort = userService.findUserByWorkWechat(userId); UserByPort userByPort = userService.findUserByWorkWechat(userId);
if (userByPort != null) {
EncryptionAlgorithmUtil encryptionAlgorithmUtils = new EncryptionAlgorithmUtil(); EncryptionAlgorithmUtil encryptionAlgorithmUtils = new EncryptionAlgorithmUtil();
Map<String, String> userKeyAndUserToken = encryptionAlgorithmUtils.getUserKeyAndUserToken(userByPort); Map<String, String> userKeyAndUserToken = encryptionAlgorithmUtils.getUserKeyAndUserToken(userByPort);
String key = userKeyAndUserToken.get("key"); String key = userKeyAndUserToken.get("key");
String token = userKeyAndUserToken.get("token"); String token = userKeyAndUserToken.get("token");
if (userByPort != null) {
// 调用接口,用于写入数据至redis // 调用接口,用于写入数据至redis
PublicConfig.findUserByQyWxUserId(userId); PublicConfig.findUserByQyWxUserId(userId);

Loading…
Cancel
Save