|
@@ -192,11 +192,12 @@ public class SysUserSignCertController {
|
|
|
@GetMapping("/sign-cert-result/{userId}")
|
|
|
public R<?> getSignCertResult(@PathVariable("userId") Integer userId) {
|
|
|
String key = CacheConstants.USER_SIGN_CERT_RESPONSE_KEY + userId;
|
|
|
- JSONObject response = (JSONObject) redisTemplate.opsForValue().get(key);
|
|
|
+ String response = (String) redisTemplate.opsForValue().get(key);
|
|
|
if (response == null) {
|
|
|
return R.failed("没有结果");
|
|
|
}
|
|
|
+ JSONObject jsonResult = JSONUtil.parseObj(response);
|
|
|
redisTemplate.delete(key);
|
|
|
- return R.ok(response);
|
|
|
+ return R.ok(jsonResult);
|
|
|
}
|
|
|
}
|