Commit be44baef91bcab85537c1f6beef5254b22215fdc
1 parent
bd22b962
update无用的注释
Showing
3 changed files
with
0 additions
and
63 deletions
src/main/java/com/cnlive/shenhe/utils/AntiFraudUtil.java
| ... | ... | @@ -5,12 +5,8 @@ import com.alibaba.fastjson.JSONArray; |
| 5 | 5 | import com.alibaba.fastjson.JSONObject; |
| 6 | 6 | import org.apache.commons.lang3.StringUtils; |
| 7 | 7 | |
| 8 | -import java.util.HashMap; | |
| 9 | -import java.util.Map; | |
| 10 | 8 | import java.util.UUID; |
| 11 | 9 | |
| 12 | -import javax.swing.plaf.basic.BasicScrollPaneUI.HSBChangeListener; | |
| 13 | - | |
| 14 | 10 | |
| 15 | 11 | /** |
| 16 | 12 | * 数美 反欺诈工具类 |
| ... | ... | @@ -33,35 +29,6 @@ public class AntiFraudUtil { |
| 33 | 29 | |
| 34 | 30 | |
| 35 | 31 | private static final String Contents_list = "https://www.fengkongcloud.com/ApiV2/ListService/lists"; |
| 36 | - | |
| 37 | - public static void main(String[] args) { | |
| 38 | -// String jsonArray = "[{\"imageUrl\":\"http://ffyl.ys2.cnliveimg.com/223/img/2018/0820/ff80808164a7163a016555c9a6ac0208/000002.jpg?imageView2/1/w/704/h/396\"},\n" + | |
| 39 | -// "{\"imageUrl\":\"https://wjj.ys1.cnliveimg.com/769/img/2018/0129/fitnessPhotos.jpg\"},{\"imageUrl\":\"http://ffyl.ys2.cnliveimg.com/223/img/2018/0820/ff80808164a7163a016555c9a6ac0208/000002.jpg?imageView2/1/w/704/h/396\"},{\"imageUrl\":\"http://yweb3.cnliveimg.com/828/img/2018/0802/180802161358328_692.jpg\"},{\"imageUrl\":\"http://ffyl.ys2.cnliveimg.com/223/img/2018/0820/ff80808164a7163a016555c9a6ac0208/000002.jpg?imageView2/1/w/704/h/396\"},\n" + | |
| 40 | -// "{\"imageUrl\":\"http://yweb3.cnliveimg.com/828/img/2018/0802/180802161358328_692.jpg\"},{\"imageUrl\":\"http://ffyl.ys2.cnliveimg.com/223/img/2018/0820/ff80808164a7163a016555c9a6ac0208/000002.jpg?imageView2/1/w/704/h/396\"},{\"imageUrl\":\"http://yweb3.cnliveimg.com/828/img/2018/0802/180802161358328_692.jpg\"},{\"imageUrl\":\"http://yweb3.cnliveimg.com/828/img/2018/0802/180802161358328_692.jpg\"}]"; | |
| 41 | -// UUID uuid = UUID.randomUUID(); | |
| 42 | -// String btId = uuid.toString(); | |
| 43 | - | |
| 44 | -// System.out.println("文本:"+AntiFraudUtil.filterText("0000001", "王八蛋", "DYNAMIC_USER") + "---"); | |
| 45 | -// System.out.println(AntiFraudUtil.filterArticle("000111","http://ffyl.cnlive.com/tgtw/detail2_2019_08/29/1400477.html",null)); | |
| 46 | - //System.out.println("图片:"+AntiFraudUtil.filterImg("0000001", jsonArray,"DYNAMIC_BUSINESS") + "---"); | |
| 47 | - //System.out.println("视频:"+AntiFraudUtil.filterVideo("http://wjj.ys1.cnliveimg.com/testVideo/test1.mp4",btId,null) + "---"); | |
| 48 | - //queryVideoResult("02b649b7-3451-403e-abd0-592302cec2a0"); | |
| 49 | - | |
| 50 | -try { | |
| 51 | -// Map<Object, Object> hashMap = new HashMap<Object, Object>(); | |
| 52 | -// hashMap.put("11", "1111"); | |
| 53 | -// String object = (String) hashMap.get("11"); | |
| 54 | -// String object2 = (String) hashMap.get("22"); | |
| 55 | -// System.out.println(object); | |
| 56 | -// System.out.println(object2); | |
| 57 | - | |
| 58 | -// System.out.println(addBlackContents("2222")); | |
| 59 | -} catch (Exception e) { | |
| 60 | - e.printStackTrace(); | |
| 61 | -} | |
| 62 | -//System.out.println(contentsList()); | |
| 63 | -//System.out.println(blackContentsList()); | |
| 64 | - } | |
| 65 | 32 | |
| 66 | 33 | /** |
| 67 | 34 | * 智能文本过滤 | ... | ... |
src/main/java/com/cnlive/shenhe/utils/HttpUtil.java
| ... | ... | @@ -485,17 +485,6 @@ public class HttpUtil { |
| 485 | 485 | |
| 486 | 486 | |
| 487 | 487 | public static void main(String[] args) { |
| 488 | - /*Map<String, String> map = new HashMap<>(); | |
| 489 | - JSONObject param = new JSONObject(); | |
| 490 | - param.put("activity_id","60:video:comets:10011#2"); | |
| 491 | - param.put("state",3); | |
| 492 | - param.put("attr_tags",""); | |
| 493 | - param.put("msg",""); | |
| 494 | - | |
| 495 | - map.put("param",param.toJSONString()); | |
| 496 | - String form = form("http://yp5ntd.natappfree.cc/CnInteraction/services/commentForHd/auditCallBackNew", map); | |
| 497 | - System.out.println(form);*/ | |
| 498 | - | |
| 499 | 488 | |
| 500 | 489 | JSONObject params = new JSONObject(); |
| 501 | 490 | params.put("video_id", "60_8be004799c424688949704814ea0d16d"); | ... | ... |
src/main/java/com/cnlive/shenhe/utils/OpenUtil.java
| ... | ... | @@ -11,25 +11,6 @@ import java.util.*; |
| 11 | 11 | */ |
| 12 | 12 | public class OpenUtil { |
| 13 | 13 | |
| 14 | - | |
| 15 | - //生成post方式的请求参数签名 | |
| 16 | - public static void main(String[] args) { | |
| 17 | -// String app_key = "ad101b9152817a79b5c33c3617b96ff91385096ff3b4ba"; //开发者帐号对应的key. 请开发者谨慎保管此值。 | |
| 18 | -// Map<String, String> params = new HashMap<>(); | |
| 19 | -// params.put("appId", "769_jetja50p18"); | |
| 20 | -// params.put("emailAddr", "642522156@qq.com"); | |
| 21 | -// params.put("title", "新直播开播申请"); | |
| 22 | -// params.put("content", "李伟 __12001072345__中投视讯sdadadad__测试2测试2测试2测试2__2019-10-30 14:53:50__2019-10-30 14:55:15__花园桥花园桥花园桥花园桥花园桥花园桥__rtmp://sxzg.rtmpt2.cnlive.com/live-sxzg-82/82_newshen4?key=564329e44212e754__rtmp://sxzg.rtmpt2.cnlive.com/live-sxzg-82/82_newshen4"); | |
| 23 | -// params.put("templateId", "4017"); | |
| 24 | -// params.put("sign", sign(params,app_key)); | |
| 25 | -// HttpUtil httpUtil = HttpUtil.init(); | |
| 26 | -// httpUtil.setParamMap(params); | |
| 27 | -// String URL = "http://sms.cnlive.com/CnliveM3/email/sendMoreVarEmail.action"; | |
| 28 | -// Map<String, String> post = httpUtil.post(URL); | |
| 29 | -// System.out.println(post.get("result")); | |
| 30 | - } | |
| 31 | - | |
| 32 | - | |
| 33 | 14 | /** |
| 34 | 15 | * 验证签名 |
| 35 | 16 | * 用于服务端 | ... | ... |