All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.diboot.devtools.v2.O00O00OO0000OO0O Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) dibo.ltd, https://www.dibo.ltd, https://www.diboot.com
 * 

* ---- 版权声明 ---- * Diboot相关商标、软件著作权、专利等全部知识产权隶属于苏州帝博信息技术有限公司。 * Diboot devtools 非开源项目,如您有devtools相关定制化需求,请至官网(https://www.dibo.ltd)联系帝博信息商务。 * * 《中华人民共和国刑法》规定:破坏计算机信息系统罪,处五年以下有期徒刑或者拘役;后果特别严重的,处五年以上有期徒刑。 * 侵犯知识产权罪:处三年以下有期徒刑、拘役或管制,并处罚金;情节特别严重的,处三年以上七年以下有期徒刑,并处罚金。 * * 任何尝试破解、破坏devtools、侵犯diboot知识产权的行为,我们将不惜一切代价追究到底! *

*/ package com.diboot.devtools.v2; import com.diboot.core.config.Cons; import com.diboot.core.util.D; import com.diboot.core.util.S; import com.diboot.core.util.V; import lombok.extern.slf4j.Slf4j; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; @Slf4j @Deprecated() public class O00O00OO0000OO0O { public static enum CDS { D, TEXT, INPUT, TEXTAREA } public static final Map l1lll11l111l11 = new HashMap() { { put(CDS.D.name(), 1); put(CDS.TEXT.name(), 4); put(CDS.INPUT.name(), 3); put(CDS.TEXTAREA.name(), 9); } }; public static enum FM_TP { INPUT, TEXTAREA, SELECT, RICH_TEXT, DATE_PICKER, DATETIME_PICKER, IMG_UPLOAD, FILE_UPLOAD, NONE } private static final List l111111ll11l1 = new ArrayList<>(Arrays.asList("id", OOO0OO00O00O00OO.l11llll1ll11ll1("dXVpZA=="))); private static final List lllll1l111l11 = new ArrayList<>(Arrays.asList(OOO0OO00O00O00OO.l11llll1ll11ll1("Y3JlYXRlVGltZQ=="))); @Deprecated() public static List ll11ll11l1ll11l(List l1ll11l11l11) { if (l1ll11l11l11 != null) { List l1ll11ll11l1 = new ArrayList<>(); for (O000000O0O0OO000 llll1llll11l : l1ll11l11l11) { if (O0OO00OO0O0OO000.PRIMARY.name().equals(llll1llll11l.getKeyType())) { l1ll11ll11l1.add(llll1llll11l); } } return l1ll11ll11l1; } return null; } @Deprecated() public static String l1l11l11111l111(String l1ll1ll1ll11) { return S.capFirst(lllll11ll1111l1(l1ll1ll1ll11)); } @Deprecated() public static String lllll11ll1111l1(String ll1l11ll1l1l) { if (V.isEmpty(ll1l11ll1l1l)) { return null; } String lll1lll11l1l = null; String[] l1ll1111l1l1 = ll1l11ll1l1l.split("_"); for (String lllllll1l111 : l1ll1111l1l1) { if (V.notEmpty(lllllll1l111)) { if (lll1lll11l1l == null) { lll1lll11l1l = lllllll1l111.toLowerCase(); } else { lll1lll11l1l += lllllll1l111.substring(0, 1).toUpperCase() + lllllll1l111.substring(1).toLowerCase(); } } } return lll1lll11l1l; } @Deprecated() public static String l11111lll1llll1(O000000O0O0OO000 lll1l11l1lll) { String lll11llll111 = null; String lll1l1llll1l = lll1l11l1lll.getFieldPackagingType(); if (l111111ll11l1.contains(lll1l11l1lll.getFieldName())) { return FM_TP.NONE.name(); } else if (lllll1l111l11.contains(lll1l11l1lll.getFieldName())) { return FM_TP.NONE.name(); } else if (lll1l11l1lll.getColumnExt() != null && OOO00OO00000O00O.RF_TP.D.name().equals(lll1l11l1lll.getColumnExt().getRefType()) && V.notEmpty(lll1l11l1lll.getColumnExt().getRefType())) { return FM_TP.SELECT.name(); } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("Qm9vbGVhbg==").equals(lll1l1llll1l)) { return FM_TP.SELECT.name(); } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("RGF0ZQ==").equals(lll1l1llll1l)) { if (V.notEmpty(lll1l11l1lll.getColType()) && lll1l11l1lll.getColType().startsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGF0ZQ==")) && !lll1l11l1lll.getColType().startsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGF0ZXRpbWU="))) { return FM_TP.DATE_PICKER.name(); } else { return FM_TP.DATETIME_PICKER.name(); } } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("SW50ZWdlcg==").equals(lll1l1llll1l) || OOO0OO00O00O00OO.l11llll1ll11ll1("TG9uZw==").equals(lll1l1llll1l) || OOO0OO00O00O00OO.l11llll1ll11ll1("RG91Ymxl").equals(lll1l1llll1l) || OOO0OO00O00O00OO.l11llll1ll11ll1("QmlnRGVjaW1hbA==").equals(lll1l1llll1l)) { return FM_TP.INPUT.name(); } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("U3RyaW5n").equals(lll1l1llll1l)) { if (lll1l11l1lll.getColLength() > 1000) { return FM_TP.RICH_TEXT.name(); } else if (lll1l11l1lll.getColLength() > 255) { return FM_TP.TEXTAREA.name(); } else { return FM_TP.INPUT.name(); } } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("TGlzdA==").equals(lll1l1llll1l)) { return FM_TP.SELECT.name(); } return lll11llll111; } @Deprecated() public static String l1111l1l11ll11l(String ll11ll1111ll, String l1ll111l1l11, int llll111111l1, int ll1l1l111lll) { if (l1ll111l1l11 == null) { return null; } l1ll111l1l11 = l1ll111l1l11.toLowerCase(); boolean llll1ll11111 = S.startsWithIgnoreCase(ll11ll1111ll, OOO0OO00O00O00OO.l11llll1ll11ll1("aXNf")) || S.startsWithIgnoreCase(ll11ll1111ll, OOO0OO00O00O00OO.l11llll1ll11ll1("aGFzXw==")); if (l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("Yml0")) || l1ll111l1l11.startsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("Ym9vbA==")) || (l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("dGlueWludA==")) && llll111111l1 == 1)) { return OOO0OO00O00O00OO.l11llll1ll11ll1("Qm9vbGVhbg=="); } else if (llll1ll11111) { if (l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("dGlueWludA==")) || (OOO0OO00O00O00OO.l11llll1ll11ll1("bnVtYmVy").equals(l1ll111l1l11) && llll111111l1 <= 2)) { return OOO0OO00O00O00OO.l11llll1ll11ll1("Qm9vbGVhbg=="); } } if (l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("Y2hhcg==")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("ZW51bQ==")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("dGV4dA==")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("YmxvYg==")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("Y2xvYg==")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("dmFyYmluYXJ5"))) { return OOO0OO00O00O00OO.l11llll1ll11ll1("U3RyaW5n"); } if (S.containsIgnoreCase(l1ll111l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("ZGVjaW1hbA==")) || S.equalsIgnoreCase(l1ll111l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("bnVtZXJpYw==")) || (ll1l1l111lll > 0 && S.equalsIgnoreCase(l1ll111l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("TlVNQkVS")))) { return OOO0OO00O00O00OO.l11llll1ll11ll1("QmlnRGVjaW1hbA=="); } else if (S.containsIgnoreCase(l1ll111l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("ZmxvYXQ=")) || S.containsIgnoreCase(l1ll111l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("ZG91Ymxl")) || S.equalsIgnoreCase(l1ll111l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("cmVhbA==")) || S.equalsIgnoreCase(l1ll111l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("bnVtZXJpYw=="))) { return OOO0OO00O00O00OO.l11llll1ll11ll1("RG91Ymxl"); } if (l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("aW50Mg==")) || OOO0OO00O00O00OO.l11llll1ll11ll1("aW50NA==").equals(l1ll111l1l11) || OOO0OO00O00O00OO.l11llll1ll11ll1("aW50ZWdlcg==").equals(l1ll111l1l11)) { return OOO0OO00O00O00OO.l11llll1ll11ll1("SW50ZWdlcg=="); } else if (l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("YmlnaW50")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("aW50OA==")) || ((l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("aW50")) || OOO0OO00O00O00OO.l11llll1ll11ll1("bnVtYmVy").equals(l1ll111l1l11)) && llll111111l1 > 10)) { return OOO0OO00O00O00OO.l11llll1ll11ll1("TG9uZw=="); } else if (l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("dGlueWludA==")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("c21hbGxpbnQ=")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("bWVkaXVtaW50")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("aW50")) || (OOO0OO00O00O00OO.l11llll1ll11ll1("bnVtYmVy").equals(l1ll111l1l11) && llll111111l1 <= 10)) { return OOO0OO00O00O00OO.l11llll1ll11ll1("SW50ZWdlcg=="); } else if (l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("dGltZXN0YW1w")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGF0ZQ==")) || l1ll111l1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("dGltZQ=="))) { return OOO0OO00O00O00OO.l11llll1ll11ll1("RGF0ZQ=="); } else if (S.equalsIgnoreCase(l1ll111l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("Ynl0ZQ=="))) { return OOO0OO00O00O00OO.l11llll1ll11ll1("Qnl0ZQ=="); } else if (S.containsIgnoreCase(l1ll111l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("YmluYXJ5"))) { return OOO0OO00O00O00OO.l11llll1ll11ll1("Qnl0ZVtd"); } else if (S.containsIgnoreCase(l1ll111l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("anNvbg=="))) { return OOO0OO00O00O00OO.l11llll1ll11ll1("TGlzdA=="); } else { log.warn(OOO0OO00O00O00OO.l11llll1ll11ll1("5pyq6IO96K+G5Yir5YiX5a6a5LmJ57G75Z6L77yBY29sVHlwZT0=") + l1ll111l1l11); return null; } } @Deprecated() public static List l1l1l11l11l1ll1(O000000O0O0OO000 ll1lllllll11) { List l11llll11l11 = new ArrayList<>(); String l111l1l1ll11 = ll1lllllll11.getFieldPackagingType(); if (ll1lllllll11.isNotnull()) { l11llll11l11.add(OOO0OO00O00O00OO.l11llll1ll11ll1("Tm90TnVsbA==")); } if (OOO0OO00O00O00OO.l11llll1ll11ll1("RGF0ZQ==").equalsIgnoreCase(l111l1l1ll11)) { l11llll11l11.add(OOO0OO00O00O00OO.l11llll1ll11ll1("RGF0ZQ==")); } else if (S.containsAny(l111l1l1ll11, OOO0OO00O00O00OO.l11llll1ll11ll1("TG9uZw=="), OOO0OO00O00O00OO.l11llll1ll11ll1("SW50ZWdlcg=="), OOO0OO00O00O00OO.l11llll1ll11ll1("QmlnRGVjaW1hbA=="), OOO0OO00O00O00OO.l11llll1ll11ll1("RG91Ymxl"), OOO0OO00O00O00OO.l11llll1ll11ll1("RmxvYXQ="))) { l11llll11l11.add(OOO0OO00O00O00OO.l11llll1ll11ll1("TnVtYmVy")); } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("U3RyaW5n").equalsIgnoreCase(l111l1l1ll11)) { } else if (S.containsIgnoreCase(ll1lllllll11.getFieldName(), OOO0OO00O00O00OO.l11llll1ll11ll1("cGhvbmU="))) { l11llll11l11.add(OOO0OO00O00O00OO.l11llll1ll11ll1("UGhvbmU=")); } else if (S.containsIgnoreCase(ll1lllllll11.getFieldName(), OOO0OO00O00O00OO.l11llll1ll11ll1("ZW1haWw="))) { l11llll11l11.add(OOO0OO00O00O00OO.l11llll1ll11ll1("RW1haWw=")); } return l11llll11l11; } @Deprecated() public static String lll11l11llll1l1() { BufferedReader l1ll1l11l1ll = null; Process ll11lll1lll1 = null; String l1llll1lll1l = null; String l11111llll11 = System.getProperty(OOO0OO00O00O00OO.l11llll1ll11ll1("b3MubmFtZQ==")); String ll111l1ll11l = S.containsIgnoreCase(l11111llll11, OOO0OO00O00O00OO.l11llll1ll11ll1("TWFj")) ? OOO0OO00O00O00OO.l11llll1ll11ll1("IGVuMA==") : OOO0OO00O00O00OO.l11llll1ll11ll1("IGV0aDA="); try { ll11lll1lll1 = Runtime.getRuntime().exec("if" + OOO0OO00O00O00OO.l11llll1ll11ll1("Y29uZmln") + ll111l1ll11l); l1ll1l11l1ll = new BufferedReader(new InputStreamReader(ll11lll1lll1.getInputStream())); String ll1l11l11l11 = null; while ((ll1l11l11l11 = l1ll1l11l1ll.readLine()) != null) { if (S.containsIgnoreCase(ll1l11l11l11, OOO0OO00O00O00OO.l11llll1ll11ll1("ZXRoZXIg"))) { String ll1l1111lll1 = S.substringAfter(ll1l11l11l11, OOO0OO00O00O00OO.l11llll1ll11ll1("ZXRoZXIg")); l1llll1lll1l = S.substringBefore(ll1l1111lll1.trim(), " "); } } } catch (IOException e) { } finally { try { if (l1ll1l11l1ll != null) { l1ll1l11l1ll.close(); } } catch (IOException e1) { } l1ll1l11l1ll = null; ll11lll1lll1 = null; } return l1llll1lll1l; } @Deprecated() public static void l1ll1l1lll111ll(O000000O0O0OO000 l1l1ll1lll1l, Object l111l1lll11l) { if (l111l1lll11l == null) { return; } String lll1111l1ll1 = null; if (S.containsIgnoreCase(l1l1ll1lll1l.getColType(), OOO0OO00O00O00OO.l11llll1ll11ll1("dGltZXN0YW1w")) || S.containsIgnoreCase(l1l1ll1lll1l.getColType(), OOO0OO00O00O00OO.l11llll1ll11ll1("ZGF0ZXRpbWU="))) { String llll1l111111 = l1l1ll1lll1l.getFromExtensionMap(OOO0OO00O00O00OO.l11llll1ll11ll1("Zm9ybWF0dGVy")); if (llll1l111111 == null) { llll1l111111 = D.FORMAT_DATETIME_Y4MDHM; } lll1111l1ll1 = D.convert2FormatString(D.convert2DateTime(String.valueOf(l111l1lll11l)), llll1l111111); } else if (S.startsWithIgnoreCase(l1l1ll1lll1l.getColType(), OOO0OO00O00O00OO.l11llll1ll11ll1("ZGF0ZQ=="))) { lll1111l1ll1 = D.getDate((Date) l111l1lll11l); } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("TGlzdA==").equalsIgnoreCase(l1l1ll1lll1l.getFieldPackagingType())) { lll1111l1ll1 = String.valueOf(l111l1lll11l); if (lll1111l1ll1.contains("[") && lll1111l1ll1.contains("]")) { lll1111l1ll1 = S.substringBetween(lll1111l1ll1, "[", "]"); lll1111l1ll1 = lll1111l1ll1.split(Cons.SEPARATOR_COMMA)[0]; lll1111l1ll1 = S.replaceChars(lll1111l1ll1, "\"", ""); } } else { lll1111l1ll1 = String.valueOf(l111l1lll11l); } l1l1ll1lll1l.setExample(lll1111l1ll1); } @Deprecated() public static String llllll1l1l111l1(String l1lll1l111l1, int llll1l1l11ll, int l1l111ll1l1l) { char[] l1111l1l1lll = l1lll1l111l1.toCharArray(); char[] l1l1ll1lllll = l1lll1l111l1.toCharArray(); l1111l1l1lll[llll1l1l11ll] = l1l1ll1lllll[l1l111ll1l1l]; l1111l1l1lll[l1l111ll1l1l] = l1l1ll1lllll[llll1l1l11ll]; return new String(l1111l1l1lll); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy