Commit dbe919a3a97315ef4ee085ea090f6779a9a82a96

Authored by 徐近程
1 parent df944de6

update

src/main/java/com/cnlive/shenhe/api/AudioControllerApi.java
... ... @@ -21,6 +21,7 @@ import org.slf4j.LoggerFactory;
21 21 import org.springframework.beans.factory.annotation.Autowired;
22 22 import org.springframework.stereotype.Controller;
23 23 import org.springframework.web.bind.annotation.PostMapping;
  24 +import org.springframework.web.bind.annotation.RequestBody;
24 25 import org.springframework.web.bind.annotation.RequestMapping;
25 26 import org.springframework.web.bind.annotation.ResponseBody;
26 27  
... ... @@ -118,7 +119,7 @@ public class AudioControllerApi {
118 119 logger.info("易盾音频检测校验签名结果result:{}", flag);
119 120 if (flag) {
120 121 try {
121   - JSONObject jsonObject = JSONObject.parseObject("callbackData");
  122 + JSONObject jsonObject = JSONObject.parseObject(callbackData);
122 123 JSONArray antispamArray = jsonObject.getJSONArray("antispam");
123 124 if (antispamArray != null && antispamArray.size() > 0) {
124 125 for (Object obj : antispamArray) {
... ...