| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.lf.server.controller.other.FloatServerController; |
| | | import com.lf.server.entity.all.MenusAuthEntity; |
| | | import com.lf.server.entity.all.PermsAuthEntity; |
| | | import com.lf.server.entity.all.ResAuthEntity; |
| | |
| | | //testAes(); |
| | | //testPerms(); |
| | | //testBlacklist(); |
| | | //FloatServerController.test(); |
| | | |
| | | //boolean f1 = ZipHelper.unzip("D:\\LF\\data\\resources.zip", "D:\\LF\\data\\unzip"); |
| | | //boolean f2 = ZipHelper.zip("D:\\LF\\data\\res.zip", "D:\\LF\\data\\unzip\\resources"); |
| | |
| | | return -1; |
| | | } |
| | | |
| | | private LicHelper getHelper() { |
| | | private static LicHelper getHelper() { |
| | | if (licHelper == null) { |
| | | licHelper = new LicHelper(); |
| | | licHelper.d("&kdaow$IEW.##%5-"); |
| | |
| | | return licHelper; |
| | | } |
| | | |
| | | private void test() { |
| | | public static void test() { |
| | | try { |
| | | ReqParamFloatServer reqParam = new ReqParamFloatServer("192.168.20.106", "12316"); |
| | | String json = JSON.toJSONString(reqParam); |
| | | |
| | | LicHelper helper = new LicHelper(); |
| | | helper.d("&kdaow$IEW.##%5-"); |
| | | helper.c("*y91z72a;pclfleoqc20161v$DSP&%3+"); |
| | | String licCode = "78a82f0920de0f557f8177bec1e48601c4dc25e4054a00728e4314b56528d3a1632de5298edee38a65412277977a174fea5d91c452b19ef138dbc2ba089ba632"; |
| | | |
| | | LicHelper helper = getHelper(); |
| | | String str = helper.a(json); |
| | | System.out.println("ReqParamFloatServer: " + str); |
| | | |
| | |
| | | */ |
| | | public class StaticData { |
| | | /** |
| | | * 权限排除路径 |
| | | * 权限排除路径:/proxy |
| | | */ |
| | | public static String[] EXCLUDE_PATH = new String[]{"/swagger", "/sign/", "/error", "/proxy"}; |
| | | public static String[] EXCLUDE_PATH = new String[]{"/swagger", "/sign/", "/error", "/floatserver"}; |
| | | |
| | | /** |
| | | * 数值:4 |
| | |
| | | (instance = Cipher.getInstance(e)).init(2, new SecretKeySpec(this.a.getBytes(c), d), this.a()); |
| | | s2 = new String(instance.doFinal(this.e(s)), c); |
| | | } catch (Exception ex) { |
| | | // |
| | | String str = ex.getMessage(); |
| | | } |
| | | return s2; |
| | | } |