Commit 6e47149d2c3651ca99432d48d8b37ed1acb62831
1 parent
888afc26
update
Showing
1 changed file
with
6 additions
and
6 deletions
src/main/java/com/cnlive/shenhe/serviceImpl/AudioServiceImpl.java
| ... | ... | @@ -114,30 +114,30 @@ public class AudioServiceImpl { |
| 114 | 114 | return new ResponseBean(ErrorEnum.SUCCESS.getErrorCode(), "已退领"); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | - public String repulse(String shyAudioId,String msg,String userId){ | |
| 118 | - String showMsg=""; | |
| 117 | + public String repulse(String shyAudioId, String msg, String userId) { | |
| 118 | + String showMsg = ""; | |
| 119 | 119 | ShyAudio shyAudio = audioService.selectByPrimaryKey(Integer.parseInt(shyAudioId)); |
| 120 | 120 | JSONObject result; |
| 121 | 121 | try { |
| 122 | 122 | result = Pass.audioPass(shyAudio.getAudioId(), 4, msg, msg, shyAudio.getCallback()); |
| 123 | 123 | } catch (Exception e) { |
| 124 | - logger.error("视频审核失败,id==" + shyAudioId, e); | |
| 124 | + logger.error("音频审核失败,id==" + shyAudioId, e); | |
| 125 | 125 | showMsg = showMsg + "," + shyAudio.getAudioTitle() + " 拒绝请求失败"; |
| 126 | 126 | return showMsg; |
| 127 | 127 | } |
| 128 | 128 | if (result == null) { |
| 129 | - logger.error("视频审核失败且接口错误没有返回信息,id==" + shyAudioId); | |
| 129 | + logger.error("音频审核失败且接口错误没有返回信息,id==" + shyAudioId); | |
| 130 | 130 | showMsg = showMsg + "," + shyAudio.getAudioTitle() + " 拒绝请求失败"; |
| 131 | 131 | return showMsg; |
| 132 | 132 | } |
| 133 | 133 | Integer code = result.getInteger("code"); |
| 134 | 134 | if (code != 0) { |
| 135 | - logger.error("视频审核失败,id:{},code:{}", shyAudioId, code); | |
| 135 | + logger.error("音频审核失败,id:{},code:{}", shyAudioId, code); | |
| 136 | 136 | showMsg = showMsg + "," + shyAudio.getAudioTitle() + " " + result.getString("msg"); |
| 137 | 137 | return showMsg; |
| 138 | 138 | } |
| 139 | 139 | //0.未审核,1:已审核,2.拒绝 |
| 140 | - int i = audioService.updateAudio(Integer.parseInt(shyAudioId), userId,null,"", 2, msg); | |
| 140 | + int i = audioService.updateAudio(Integer.parseInt(shyAudioId), userId, null, "", 2, msg); | |
| 141 | 141 | if (i == 0) { |
| 142 | 142 | showMsg = showMsg + "," + shyAudio.getAudioTitle() + " 更新失败"; |
| 143 | 143 | return showMsg; | ... | ... |