Commit bd22b9624d99851d1ab589cb75c0ae4955a50586
1 parent
491a5181
去掉无用的注释
Showing
1 changed file
with
0 additions
and
66 deletions
src/main/java/com/cnlive/shenhe/utils/YiDunAntiFraudUtil.java
| ... | ... | @@ -80,72 +80,6 @@ public class YiDunAntiFraudUtil { |
| 80 | 80 | */ |
| 81 | 81 | private final static String URL_RESULT = "https://as.dun.163yun.com/v1/crawler/callback/results"; |
| 82 | 82 | |
| 83 | - public static void main(String[] args) { | |
| 84 | - | |
| 85 | -// Map<String, String> params = new HashMap<String, String>(5); | |
| 86 | -// // 1.设置公共参数 | |
| 87 | -// params.put("secretId", SECRETID); | |
| 88 | -// params.put("version", "v1.0"); | |
| 89 | -// params.put("timestamp", String.valueOf(System.currentTimeMillis())); | |
| 90 | -// params.put("nonce", String.valueOf(new Random().nextInt())); | |
| 91 | -// | |
| 92 | -// // 2.生成签名信息 | |
| 93 | -// String signature1 = YiDunAntiFraudUtil.genSignature(SECRETKEY, params); | |
| 94 | -// params.put("signature", signature1); | |
| 95 | -// String s1 = HttpClientUtils.post_str(URL_RESULT, params); | |
| 96 | -// logger.info("查询易盾网站检测结果:{}", s1); | |
| 97 | - //智能文本识别审核测试 | |
| 98 | - //getTextFilter("王八蛋"); | |
| 99 | - | |
| 100 | - //智能图片识别审核测试 | |
| 101 | -// JSONArray jsonArray = new JSONArray(); | |
| 102 | -// JSONObject image1 = new JSONObject(); | |
| 103 | -// image1.put("name", UUID.randomUUID()); | |
| 104 | -// image1.put("type", 1); | |
| 105 | -// image1.put("data", "http://article-bj.bj.bcebos.com//20200326/7f3d23bbb28421e6e2a6f131273554fb_15.jpg?authorization=bce-auth-v1%2F1eda661c3697440eaaca912ccb6f959c%2F2020-03-30T05%3A42%3A21Z%2F604800%2F%2F39f195e2327ef87270bd095fa64dfdcadad6f01a0d6dc6a4313306f164591cc5"); | |
| 106 | -// jsonArray.add(image1); | |
| 107 | -// JSONObject image2 = new JSONObject(); | |
| 108 | -// image2.put("name", UUID.randomUUID()); | |
| 109 | -// image2.put("type", 1); | |
| 110 | -// image2.put("data", "http://test.qnvod.cnlive.com/shen/802/2020/03/01/8a8a878c6dce5cfe017096cd07940c84/000002.jpg"); | |
| 111 | -// jsonArray.add(image2); | |
| 112 | -// JSONObject image3 = new JSONObject(); | |
| 113 | -// image3.put("name", UUID.randomUUID()); | |
| 114 | -// image3.put("type", 1); | |
| 115 | -// image3.put("data", "https://wjj.ys2.cnliveimg.com/769/img/0/2020/03/21/158474856886077030277.jpg"); | |
| 116 | -// jsonArray.add(image3); | |
| 117 | -// System.out.println(jsonArray); | |
| 118 | -// JSONObject imagesFilter = getImagesFilter(jsonArray.toString()); | |
| 119 | -// System.out.println(image1); | |
| 120 | -// System.out.println(imagesFilter); | |
| 121 | - | |
| 122 | - | |
| 123 | - //智能网页识别审核测试 | |
| 124 | - //getURLFilter(FILE_URL); | |
| 125 | - //getURLFilter("http://3g.huabian.com/api/hz0227/show/440549.html"); | |
| 126 | - | |
| 127 | - //智能点播音频审核 | |
| 128 | - //submitAudioOnDemandUrl("http://vod2017.qn.cnlive.com/60/vod/2020/0519/60_e74190fc4365479eaa206c5de9dbbe2d/ff8080817105357401722b713464073c_128.mp4","http://test.shen.cnlive.com/api/audio/callbackAudio"); | |
| 129 | - //submitAudioOnDemandUrl("http://tjzg.vods2.cnlive.com/995/vod/2020/0628/995_9e3355af962e46aaa555dc2041c892d4/ff808081710535740172f901bf891c7e_128.mp4","http://test.shen.cnlive.com/api/audio/callbackAudio"); | |
| 130 | - //submitAudioOnDemandUrl("http://tjzg.vods2.cnlive.com/995/vod/2020/0628/995_949677ad3e1640fbabfb014252c8e4bd/ff808081710535740172f904769c1c92_128.mp4","http://test.shen.cnlive.com/api/audio/callbackAudio"); | |
| 131 | - //submitAudioOnDemandUrl("http://tjzg.vods2.cnlive.com/995/vod/2020/0628/995_c5fb9f1474a44906836c4f5f02070fb7/ff808081710535740172f90820321cb2_128.mp4","http://test.shen.cnlive.com/api/audio/callbackAudio"); | |
| 132 | - //submitAudioOnDemandUrl("http://tjzg.vods2.cnlive.com/995/vod/2020/0628/995_2694acb0a2b644e3841c9c615b1bdeaf/ff808081710535740172f908280c1cbe_128.mp4","http://test.shen.cnlive.com/api/audio/callbackAudio"); | |
| 133 | - | |
| 134 | - /*for (int i = 0; i < 3; i++) { | |
| 135 | - ShyYidun shyYidun = new ShyYidun(); | |
| 136 | - if(i==1){ | |
| 137 | - shyYidun.setDesc_msg("aaa"); | |
| 138 | - System.out.println(shyYidun.getDesc_msg()); | |
| 139 | - } | |
| 140 | - if(i==2){ | |
| 141 | - System.out.println(shyYidun.getDesc_msg()); | |
| 142 | - } | |
| 143 | - | |
| 144 | - | |
| 145 | - | |
| 146 | - }*/ | |
| 147 | - } | |
| 148 | - | |
| 149 | 83 | |
| 150 | 84 | /** |
| 151 | 85 | * 点播音频地址提交 | ... | ... |