()
| 692 | |
| 693 | |
| 694 | public static String getPath(){ |
| 695 | String oss = System.getProperty("os.name"); |
| 696 | |
| 697 | try { |
| 698 | if (!callbacks.loadExtensionSetting("autoDecoderfilepath").equals("") && callbacks.loadExtensionSetting("autoDecoderfilepath") != null) { |
| 699 | return callbacks.loadExtensionSetting("autoDecoderfilepath"); |
| 700 | } |
| 701 | }catch (Exception e){ |
| 702 | |
| 703 | } |
| 704 | |
| 705 | if ( oss.toLowerCase().startsWith("win") ) { |
| 706 | //System.out.println(oss); |
| 707 | return "autoDecoder.properties"; |
| 708 | } else { |
| 709 | String jarPath = callbacks.getExtensionFilename(); // 获取当前jar的路径 |
| 710 | //System.out.println(jarPath); |
| 711 | return jarPath.substring(0, jarPath.lastIndexOf("/")) + "/autoDecoder.properties"; |
| 712 | } |
| 713 | } |
| 714 | |
| 715 | public static String sendPostnew(String url, String param) throws IOException { |
| 716 | OkHttpClient okHttpClient = new OkHttpClient(); |
no outgoing calls
no test coverage detected