From b704abcece97e8af79d9153121912a556d89cfed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A2=81=E6=98=BE=E4=BC=98?= <237809796@qq.com>
Date: Thu, 3 Nov 2022 10:58:48 +0800
Subject: [PATCH] .
---
pom.xml | 22 +-
root/api/dict.js | 15 +-
root/api/tmp.js | 6 +
root/index.html | 49 +++-
root/metadata/dataList.html | 12 +-
root/oth/file.html | 154 +++++++++++
root/oth/index.html | 137 ++++++++++
root/plat/db.html | 2 +-
root/user/login.html | 8 +-
root/ws.html | 245 ++++++++++++++++++
root/zhub/delay.html | 208 +++++++++++++++
root/zhub/monitor.html | 41 +++
root/zhub/timer.html | 8 +
root/zhub/topic.html | 207 +++++++++++++++
src/main/java/net/tccn/base/BaseService.java | 6 +-
src/main/java/net/tccn/base/BaseServlet.java | 15 +-
src/main/java/net/tccn/base/FileKit.java | 46 +++-
src/main/java/net/tccn/base/MetaKit.java | 29 ++-
src/main/java/net/tccn/base/MetaRender.java | 9 +-
.../java/net/tccn/base/dbq/DbExecutors.java | 12 +
.../net/tccn/base/dbq/jdbc/api/DbAccount.java | 10 +-
.../net/tccn/base/dbq/jdbc/api/DbKit.java | 11 +-
src/test/java/RunTest.java | 2 +-
23 files changed, 1192 insertions(+), 62 deletions(-)
create mode 100644 root/oth/file.html
create mode 100644 root/oth/index.html
create mode 100644 root/ws.html
create mode 100644 root/zhub/delay.html
create mode 100644 root/zhub/monitor.html
create mode 100644 root/zhub/timer.html
create mode 100644 root/zhub/topic.html
diff --git a/pom.xml b/pom.xml
index 75991bb..78af187 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,24 +7,24 @@
net.tccn
meta-kit
1.0
- war
-
-
-
-
+ jar
+
+
org.redkale
redkale
- LATEST
+ 2.7.0
org.redkalex
redkale-plugins
- LATEST
+ 2.7.0
@@ -38,7 +38,7 @@
com.arangodb
arangodb-java-driver-async
- LATEST
+ 6.0.0
junit:junit:3.8.1
@@ -81,8 +81,8 @@
maven-compiler-plugin
3.6.1
- 14
- 14
+ 19
+ 19
@@ -109,7 +109,7 @@
maven-resources-plugin
- 2.1.2
+ 3.2.0
copy-resources
diff --git a/root/api/dict.js b/root/api/dict.js
index e0f640d..3f33312 100644
--- a/root/api/dict.js
+++ b/root/api/dict.js
@@ -4,6 +4,19 @@
*/
const dict = {
list({type}) {
- return red.postX('/dict/list', {type})
+ return red.postX('/dict/list', {type}).then(res => {
+ return res//[{value:"gender",label:"性别"},{value:"status",label:"状态"}]
+ })
+ },
+
+ dictData() {
+ return new Promise(resolve => {
+ let data = {"body":{"gender":[{"id":"Dict/37473773","key":"37473773","label":"女","sysPlatId":"52481227","type":"gender","value":"4"},{"id":"Dict/37473772","key":"37473772","label":"男","sysPlatId":"52481227","type":"gender","value":"2"}],"dict":[{"id":"Dict/37473777","key":"37473777","label":"状态","sysPlatId":"52481227","type":"dict","value":"status"},{"id":"Dict/37473776","key":"37473776","label":"性别","sysPlatId":"52481227","type":"dict","value":"gender"}],"status":[{"id":"Dict/37473775","key":"37473775","label":"删除","sysPlatId":"52481227","type":"status","value":"80"},{"id":"Dict/37473774","key":"37473774","label":"正常","sysPlatId":"52481227","type":"status","value":"10"}]},"code":0,"timestamp":0}
+ data = data.body
+ resolve(data)
+ })
+
+ //return {"body":{"gender":[{"id":"Dict/37473773","key":"37473773","label":"女","sysPlatId":"52481227","type":"gender","value":"4"},{"id":"Dict/37473772","key":"37473772","label":"男","sysPlatId":"52481227","type":"gender","value":"2"}],"dict":[{"id":"Dict/37473777","key":"37473777","label":"状态","sysPlatId":"52481227","type":"dict","value":"status"},{"id":"Dict/37473776","key":"37473776","label":"性别","sysPlatId":"52481227","type":"dict","value":"gender"}],"status":[{"id":"Dict/37473775","key":"37473775","label":"删除","sysPlatId":"52481227","type":"status","value":"80"},{"id":"Dict/37473774","key":"37473774","label":"正常","sysPlatId":"52481227","type":"status","value":"10"}]},"code":0,"timestamp":0}
+ //return red.postX("/dict/data");
}
}
\ No newline at end of file
diff --git a/root/api/tmp.js b/root/api/tmp.js
index 5d1324d..b88463b 100644
--- a/root/api/tmp.js
+++ b/root/api/tmp.js
@@ -5,5 +5,11 @@ const tmp = {
search({keyword}) {
return red.postX('http://oss-v09x.woaihaoyouxi.com/game/search', {keyword})
+ },
+
+ filetoken() {
+ return red.postX('https://api-oss.1216.top/qiniufile/token?fileType=Pic&blzType=Article&listsize=1&JSESSIONID=91740a7d5c9041d94e21ac7bda158429',{}).then(res => {
+ return res.result.token
+ })
}
}
\ No newline at end of file
diff --git a/root/index.html b/root/index.html
index 5e2c189..cbcff52 100644
--- a/root/index.html
+++ b/root/index.html
@@ -46,7 +46,7 @@