| | |
| | | String substring = addr.substring(addr.length() - 4, addr.length()); |
| | | if (substring.equals(".mp4")) { |
| | | arlistm.add(addr); |
| | | } else if (substring.equals(".jpg")) { |
| | | } else if (substring.equals(".jpg") || substring.equals("JPEG")) { |
| | | arlistj.add(addr); |
| | | } |
| | | } |
| | |
| | | |
| | | feedbackService.save(feedback); |
| | | Wj wj = new Wj(); |
| | | if (feedback.getSpaddress().equals("")&&feedback.getSpaddress().equals(null)) { |
| | | if (feedback.getSpaddress().equals("")&&feedback.getSpaddress()!=null) { |
| | | |
| | | } else { |
| | | //获取视频地址 |
| | |
| | | iWjService.insertfeed(wj); |
| | | } |
| | | } |
| | | if (feedback.getTpaddress().equals("")&&feedback.getTpaddress().equals(null)){ |
| | | if (feedback.getTpaddress().equals("")&&feedback.getTpaddress()!=null){ |
| | | |
| | | } |
| | | else { |
| | |
| | | iWjService.insertfeed(wj); |
| | | } |
| | | } |
| | | alarmService.updateJtype(operation.getJid(), "2", null, null); |
| | | alarmService.updateJtype(operation.getJid(), "2", null, null,null); |
| | | |
| | | return R.success("新增成功"); |
| | | } |