Skip to content

Commit 522b2e1

Browse files
committed
修改认识错误
1 parent 333763e commit 522b2e1

File tree

8 files changed

+14
-15
lines changed

8 files changed

+14
-15
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ A like Postman API debugger that supports custom encryption.
2121

2222
- JDK下载地址:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2323
- 如果在Windows系统下无法正常使用的话.需要安装 [Microsoft Visual C++ 2015 Redistributable (x64)](http://www.microsoft.com/en-us/download/details.aspx?id=53587)
24-
- 默认支持mac和windows
2524

2625
## 使用
2726

@@ -53,11 +52,11 @@ A like Postman API debugger that supports custom encryption.
5352

5453
该App界面使用Java实现,逻辑使用Kotlin实现.内部数据库为[ObjectBox](https://objectbox.io/),需要达到自定义加密的目的的话.需要自行扩展.
5554

56-
1. **[重点]**fork仓库clone到本地后,使用IDEA打开.下载 jxbrowser-mac-6.20.jar (链接:https://pan.baidu.com/s/1B3ErPhbrocIaGhu3zg8RMA 密码:1wn9 ) 拷贝到lib中(太大了不好传,虽然名字里有mac但是windows和mac都支持,linux尚未测试,如有linux使用需求,请自行查找linux版).
55+
1. **[重点]**fork仓库clone到本地后,使用IDEA打开.下载 jxbrowser-对应平台-6.20.jar (链接:https://pan.baidu.com/s/1B3ErPhbrocIaGhu3zg8RMA 密码:1wn9 ) 拷贝到lib中(太大了不好传).
5756

58-
2. 在build生成out文件夹后,解压jsonView.rar到`\out\production\classes\com\longforus\apidebugger\ui`目录下(这样生成jar包的时候才会把这些文件包含到jar包中,gradle应该有别的更优雅的方法,目前尚未实现).
57+
2. 在build生成out文件夹后,解压jsonView.zip到`\out\production\classes\com\longforus\apidebugger\ui`目录下(这样生成jar包的时候才会把这些文件包含到jar包中,gradle应该有别的更优雅的方法,目前尚未实现).
5958

60-
3. 实现`com.longforus.apidebugger.encrypt.IEncryptHandler`抽象类.可参考默认实现类`com.longforus.apidebugger.encrypt.DefaultEncryptHandler`
59+
3. 实现`com.longforus.apidebugger.encrypt.IEncryptHandler`抽象类.可参考默认实现类`com.longforus.apidebugger.encrypt.DefaultEncryptHandler`
6160

6261
```kotlin
6362
/**
@@ -79,7 +78,7 @@ A like Postman API debugger that supports custom encryption.
7978
}
8079
```
8180

82-
4. 新建一个实现类的实例添加到`com.longforus.apidebugger.MyValueHandler#getEncryptImplList`中.第0个为默认显示item.现在就可以在加密方式中选择你自己的加密方式了.
81+
4. 新建一个实现类的实例添加到`com.longforus.apidebugger.MyValueHandler#getEncryptImplList`中.第0个为默认显示item.现在就可以在加密方式中选择你自己的加密方式了.
8382

8483
```kotlin
8584

@@ -88,5 +87,12 @@ A like Postman API debugger that supports custom encryption.
8887
}
8988
```
9089

91-
5. 打包可运行的jar包请自行搜索.
90+
5. 打包可运行的jar包:
9291

92+
![4](/img/4.png)
93+
94+
![5](/img/5.png)
95+
96+
![6](/img/6.png)
97+
98+
![7](/img/7.png)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111

1212
plugins {
1313
id 'java'
14-
id 'org.jetbrains.kotlin.jvm' version '1.2.61'
14+
id 'org.jetbrains.kotlin.jvm' version '1.2.30'
1515
}
1616

1717
apply plugin: 'kotlin-kapt'

img/4.png

57.8 KB
Loading

img/5.png

37.7 KB
Loading

img/6.png

29.4 KB
Loading

img/7.png

11.3 KB
Loading

src/main/java/com/longforus/apidebugger/ui/DefaultParamsDialog.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ private void onCancel() {
121121
dispose();
122122
}
123123

124-
public static void main(String[] args) {
125-
DefaultParamsDialog dialog = new DefaultParamsDialog();
126-
dialog.pack();
127-
dialog.setVisible(true);
128-
System.exit(0);
129-
}
130124

131125
{
132126
// GUI initializer generated by IntelliJ IDEA GUI Designer

src/main/kotlin/com/longforus/apidebugger/MyValueHandler.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import com.longforus.apidebugger.bean.ApiBean
55
import com.longforus.apidebugger.bean.ProjectBean
66
import com.longforus.apidebugger.encrypt.DefaultEncryptHandler
77
import com.longforus.apidebugger.encrypt.IEncryptHandler
8-
import com.longforus.apidebugger.encrypt.kzEncryptHandler
98
import java.awt.Toolkit
109
import java.awt.datatransfer.StringSelection
1110

@@ -18,7 +17,7 @@ import java.awt.datatransfer.StringSelection
1817
object MyValueHandler {
1918

2019

21-
val encryptImplList = listOf<IEncryptHandler>(kzEncryptHandler(), DefaultEncryptHandler())
20+
val encryptImplList = listOf<IEncryptHandler>( DefaultEncryptHandler())
2221
// val encryptImplList = listOf<IEncryptHandler>( DefaultEncryptHandler())
2322
val mGson =GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create()
2423

0 commit comments

Comments
 (0)