Commit bcae61ae2ab040522117946828c7fe55e8e14b29

Authored by 徐近程
1 parent dbe919a3

update

src/main/java/com/cnlive/shenhe/api/AudioControllerApi.java
... ... @@ -133,7 +133,7 @@ public class AudioControllerApi {
133 133 int asrStatus = objectAntispam.getIntValue("asrStatus");
134 134 String taskId = objectAntispam.getString("taskId");
135 135 ShyYidun yiDunMsg = yiDunServiceImpl.getYiDunMsg(taskId);
136   - if(yiDunMsg==null){
  136 + if (yiDunMsg == null) {
137 137 continue;
138 138 }
139 139 newYiDunMsg.setId(yiDunMsg.getId());
... ... @@ -142,7 +142,7 @@ public class AudioControllerApi {
142 142 yiDunMsg.setResult_type(String.valueOf(action));
143 143 ShyAudio shyAudio = audioService.selectByPrimaryKey(Integer.parseInt(yiDunMsg.getContent_id()));
144 144 newshyAudio.setId(shyAudio.getId());
145   - if(action==0&&asrStatus==3){
  145 + if (action == 0 && asrStatus == 3) {
146 146 yiDunMsg.setDesc_msg("易盾点播音频审核通过了");
147 147 newshyAudio.setMsg("易盾点播音频审核通过了");
148 148 newshyAudio.setUploader("机审通过");
... ... @@ -150,9 +150,9 @@ public class AudioControllerApi {
150 150 newshyAudio.setShenhe_type(CommonConst.AUDIT_TYPE_MACHANE);
151 151 newshyAudio.setReceive(CommonConst.RECEIVE_AUDIT);
152 152 Pass.audioPass(shyAudio.getAuditor_id(), 3, shyAudio.getAttr_tags(), "易盾点播音频审核通过了", shyAudio.getCallback());
153   - }else{
  153 + } else {
154 154 String labelMsg = "";
155   - if (action != 0&&asrStatus==3) {
  155 + if (action != 0 && asrStatus == 3) {
156 156 JSONArray labels = objectAntispam.getJSONArray("labels");
157 157 labelMsg = "(";
158 158 if (labels != null && labels.size() > 0) {
... ... @@ -165,18 +165,20 @@ public class AudioControllerApi {
165 165 }
166 166 }
167 167 }
168   - if(action==1&&asrStatus==3){
169   - yiDunMsg.setDesc_msg("易盾文本审核文本嫌疑" + labelMsg + ")");
170   - newshyAudio.setMsg("易盾文本审核文本违规" + labelMsg + ")");
  168 + if (action == 1 && asrStatus == 3) {
  169 + newYiDunMsg.setDesc_msg("易盾文本审核文本嫌疑" + labelMsg + ")");
  170 + newshyAudio.setMsg("易盾文本审核文本嫌疑" + labelMsg + ")");
171 171 }
172   - if(action==2&&asrStatus==3){
173   - yiDunMsg.setDesc_msg("易盾文本审核文本违规" + labelMsg + ")");
  172 + if (action == 2 && asrStatus == 3) {
  173 + newYiDunMsg.setDesc_msg("易盾文本审核文本违规" + labelMsg + ")");
174 174 newshyAudio.setMsg("易盾文本审核文本违规" + labelMsg + ")");
  175 +
175 176 }
176 177 newshyAudio.setState(0);
177 178 newshyAudio.setShenhe_type(CommonConst.AUDIT_TYPE_USER);
178 179 newshyAudio.setReceive(CommonConst.RECEIVE_BEFORE);
179 180 }
  181 + newYiDunMsg.setResult_type(String.valueOf(action));
180 182 } catch (NumberFormatException e) {
181 183 e.printStackTrace();
182 184 //审核类型改为人工审核
... ...