Commit 56785d77581791117f3612832e1cc5140472992f

Authored by liwei2917
1 parent 520654bc

修改朋友圈接口

src/main/java/com/cnlive/shenhe/api/ContentControllerApi.java
@@ -15,6 +15,7 @@ import org.slf4j.LoggerFactory; @@ -15,6 +15,7 @@ import org.slf4j.LoggerFactory;
15 import org.springframework.beans.factory.annotation.Autowired; 15 import org.springframework.beans.factory.annotation.Autowired;
16 import org.springframework.stereotype.Controller; 16 import org.springframework.stereotype.Controller;
17 import org.springframework.web.bind.annotation.PostMapping; 17 import org.springframework.web.bind.annotation.PostMapping;
  18 +import org.springframework.web.bind.annotation.RequestBody;
18 import org.springframework.web.bind.annotation.RequestMapping; 19 import org.springframework.web.bind.annotation.RequestMapping;
19 import org.springframework.web.bind.annotation.ResponseBody; 20 import org.springframework.web.bind.annotation.ResponseBody;
20 21
@@ -114,7 +115,7 @@ public class ContentControllerApi { @@ -114,7 +115,7 @@ public class ContentControllerApi {
114 */ 115 */
115 @PostMapping("/importMoment") 116 @PostMapping("/importMoment")
116 @ResponseBody 117 @ResponseBody
117 - public ResponseBean impotMoment(String param) { 118 + public ResponseBean impotMoment(@RequestBody String param) {
118 logger.info("朋友圈入库,param=====" + param); 119 logger.info("朋友圈入库,param=====" + param);
119 JSONObject json = JSONObject.parseObject(param); 120 JSONObject json = JSONObject.parseObject(param);
120 //判断是否存在 121 //判断是否存在