From 5db35b1e7f4bf41495952cfcb7faad5adfbaf48b Mon Sep 17 00:00:00 2001 From: Doghole Date: Mon, 12 May 2025 18:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BA=86=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=20proxy=20=E5=AD=97=E6=AE=B5=E3=80=81=E6=96=B0=E5=A2=9E=20prox?= =?UTF-8?q?yConfig=20=E4=BB=A5=E5=90=8E=E7=9A=84=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/system/emoneyRequest.json | 4 - conf/system/proxy.json | 6 + .../entity/config/EmoneyRequestConfig.java | 20 --- .../admin/v1/config/emoneyRequest/index.html | 17 +++ .../webpage/admin/v1/config/proxy/index.html | 131 ++++++++++++++++++ .../resources/webpage/admin/v1/include.html | 1 + 6 files changed, 155 insertions(+), 24 deletions(-) create mode 100644 conf/system/proxy.json create mode 100644 src/main/resources/webpage/admin/v1/config/proxy/index.html diff --git a/conf/system/emoneyRequest.json b/conf/system/emoneyRequest.json index e2fcc2f..1c99631 100644 --- a/conf/system/emoneyRequest.json +++ b/conf/system/emoneyRequest.json @@ -1,8 +1,4 @@ { - "proxyType" : "DIRECT", - "proxyHost" : null, - "proxyPort" : null, - "ignoreHttpsVerification" : false, "isAnonymous" : false, "username" : "emy1730978", "password" : "ubVa0vNmD+JJC4171eLYUw==", diff --git a/conf/system/proxy.json b/conf/system/proxy.json new file mode 100644 index 0000000..edc390d --- /dev/null +++ b/conf/system/proxy.json @@ -0,0 +1,6 @@ +{ + "proxyType" : "DIRECT", + "proxyHost" : "", + "proxyPort" : 0, + "ignoreHttpsVerification" : true +} \ No newline at end of file diff --git a/src/main/java/quant/rich/emoney/entity/config/EmoneyRequestConfig.java b/src/main/java/quant/rich/emoney/entity/config/EmoneyRequestConfig.java index b8107ea..ff2856d 100644 --- a/src/main/java/quant/rich/emoney/entity/config/EmoneyRequestConfig.java +++ b/src/main/java/quant/rich/emoney/entity/config/EmoneyRequestConfig.java @@ -46,26 +46,6 @@ import quant.rich.emoney.util.TextUtils; @ConfigInfo(field = "emoneyRequest", name = "益盟请求设置", initDefault = true) public class EmoneyRequestConfig implements IConfig { - /** - * 代理类型 - */ - private Proxy.Type proxyType = Proxy.Type.DIRECT; - - /** - * 代理主机 - */ - private String proxyHost; - - /** - * 代理端口 - */ - private Integer proxyPort; - - /** - * 是否忽略 HTTPS 证书校验 - */ - private Boolean ignoreHttpsVerification = false; - /** * 是否匿名登录 */ diff --git a/src/main/resources/webpage/admin/v1/config/emoneyRequest/index.html b/src/main/resources/webpage/admin/v1/config/emoneyRequest/index.html index 11c6a23..9ef94da 100644 --- a/src/main/resources/webpage/admin/v1/config/emoneyRequest/index.html +++ b/src/main/resources/webpage/admin/v1/config/emoneyRequest/index.html @@ -13,6 +13,23 @@ 益盟操盘手请求头配置,请小心更改。部分参数需要通过模拟的 APP 版本抓包确认。
+
+ 代理配置 +
+ + +
+ +
+ +
+
+
鉴权配置
diff --git a/src/main/resources/webpage/admin/v1/config/proxy/index.html b/src/main/resources/webpage/admin/v1/config/proxy/index.html new file mode 100644 index 0000000..1a2ed35 --- /dev/null +++ b/src/main/resources/webpage/admin/v1/config/proxy/index.html @@ -0,0 +1,131 @@ + + + + + +
    + +
    +
    +

    代理设置

    +
    +
    + +
    + +
    + +
    +
    + +
    + +
    + +
    代理地址 +
    +
    +
    +
    + +
    + +
    非匿名登录时的密码 +
    +
    +
    + +
    + +
    + +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    + + + + + + \ No newline at end of file diff --git a/src/main/resources/webpage/admin/v1/include.html b/src/main/resources/webpage/admin/v1/include.html index 885c957..aa95251 100644 --- a/src/main/resources/webpage/admin/v1/include.html +++ b/src/main/resources/webpage/admin/v1/include.html @@ -50,6 +50,7 @@ 设置
    请求头设置
    +
    代理设置