|
@@ -1,5 +1,6 @@
|
|
|
package com.gyee.meteorological.controller;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.gyee.meteorological.service.RedisService;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -27,7 +28,8 @@ public class MeteorologicalController {
|
|
|
public String wplist(@RequestParam(value = "wpid",required = true) String wpid,
|
|
|
@RequestParam(value = "model",required = true) String model){
|
|
|
String redisKey = (wpid+"_"+model).toUpperCase();
|
|
|
- return redisService.get(redisKey);
|
|
|
+ return JSONObject.toJSONString(redisService.get(redisKey));
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|