|
@@ -1,6 +1,8 @@
|
|
|
package com.qunzhixinxi.hnqz.admin.service.gig.impl;
|
|
|
|
|
|
+import cn.hutool.core.map.MapUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.qunzhixinxi.hnqz.admin.api.constant.CacheConstants;
|
|
|
import com.qunzhixinxi.hnqz.admin.api.dto.OladingCommonRequest;
|
|
@@ -123,9 +125,9 @@ public class GigThirdApiServiceImpl implements GigThirdApiService {
|
|
|
|
|
|
// 结果放到redis
|
|
|
String key = CacheConstants.USER_SIGN_CERT_RESPONSE_KEY + userSub.getUserId();
|
|
|
- Map<String, Object> result = new HashMap<>();
|
|
|
+ Map<String, Object> result = MapUtil.newHashMap(1);
|
|
|
result.put("OLADING", subMap);
|
|
|
- redisTemplate.opsForValue().set(key, result, 1, TimeUnit.MINUTES);
|
|
|
+ redisTemplate.opsForValue().set(key, JSONUtil.toJsonStr(result), 1, TimeUnit.MINUTES);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -159,9 +161,9 @@ public class GigThirdApiServiceImpl implements GigThirdApiService {
|
|
|
|
|
|
// 结果放到redis
|
|
|
String key = CacheConstants.USER_SIGN_CERT_RESPONSE_KEY + userSub.getUserId();
|
|
|
- Map<String, Object> result = new HashMap<>();
|
|
|
+ Map<String, Object> result = MapUtil.newHashMap(1);
|
|
|
result.put("OLADING", subMap);
|
|
|
- redisTemplate.opsForValue().set(key, result, 1, TimeUnit.MINUTES);
|
|
|
+ redisTemplate.opsForValue().set(key, JSONUtil.toJsonStr(result), 1, TimeUnit.MINUTES);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -197,8 +199,8 @@ public class GigThirdApiServiceImpl implements GigThirdApiService {
|
|
|
|
|
|
// 结果放到redis
|
|
|
String key = CacheConstants.USER_SIGN_CERT_RESPONSE_KEY + userSub.getUserId();
|
|
|
- Map<String, Object> result = new HashMap<>();
|
|
|
+ Map<String, Object> result = MapUtil.newHashMap(1);
|
|
|
result.put("OLADING", subMap);
|
|
|
- redisTemplate.opsForValue().set(key, result, 1, TimeUnit.MINUTES);
|
|
|
+ redisTemplate.opsForValue().set(key, JSONUtil.toJsonStr(result), 1, TimeUnit.MINUTES);
|
|
|
}
|
|
|
}
|