记得上下班打卡 | git大法好,push需谨慎

Commit 0664e303 authored by 张国柄's avatar 张国柄

+API:开屏广告FROM PHP.SET REDIS;

parent 03f19b4d
...@@ -32,6 +32,12 @@ public class AdamPlazaController { ...@@ -32,6 +32,12 @@ public class AdamPlazaController {
@ApiOperation(value = "开屏广告") @ApiOperation(value = "开屏广告")
@GetMapping(value = {"ad"}) @GetMapping(value = {"ad"})
public ResponseDto<Object> ad() { public ResponseDto<Object> ad() {
return ResponseDto.success(JsonUtils.fromJson(stringRedisTemplate.opsForValue().get(AD_INFO_FROM_PHP), JsonNode.class)); JsonNode adJNode = null;
try {
adJNode = JsonUtils.fromJson(stringRedisTemplate.opsForValue().get(AD_INFO_FROM_PHP), JsonNode.class);
} catch (Exception e) {
log.error("开屏广告查取处理失败", e);
}
return ResponseDto.success(adJNode);
} }
} }
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