Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
c309a434
Commit
c309a434
authored
Apr 12, 2021
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update(Modules/Database): 优化出错提示
parent
6398e8e8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
0 deletions
+34
-0
CHANGELOG.md
CHANGELOG.md
+10
-0
index.js
source/modules/database/custom/index.js
+12
-0
index.js
source/modules/database/jsp/index.js
+9
-0
index.js
source/modules/database/php/index.js
+3
-0
No files found.
CHANGELOG.md
View file @
c309a434
...
...
@@ -2,6 +2,16 @@
> 有空会补补BUG、添添新功能。
> 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT.
## `v(2.1.12)`
### 核心
*
修复 JSP Shell 无法执行 update/delete/insert 语句问题
## 数据管理
*
优化出错提示
## 2021/03/27 `v(2.1.11.1)`
### 核心
...
...
source/modules/database/custom/index.js
View file @
c309a434
...
...
@@ -532,6 +532,9 @@ class CUSTOM {
}))
.
then
((
res
)
=>
{
let
ret
=
res
[
'text'
];
if
(
ret
.
indexOf
(
"ERROR://"
)
>
-
1
)
{
throw
ret
;
}
const
arr
=
ret
.
split
(
'
\
t'
);
if
(
arr
.
length
===
1
&&
ret
===
''
)
{
toastr
.
warning
(
LANG
[
'result'
][
'warning'
],
LANG_T
[
'warning'
])
...
...
@@ -589,6 +592,9 @@ class CUSTOM {
}))
.
then
((
res
)
=>
{
let
ret
=
res
[
'text'
];
if
(
ret
.
indexOf
(
"ERROR://"
)
>
-
1
)
{
throw
ret
;
}
const
arr
=
ret
.
split
(
'
\
t'
);
const
_db
=
Buffer
.
from
(
db
).
toString
(
'base64'
);
// 删除子节点
...
...
@@ -644,6 +650,9 @@ class CUSTOM {
}))
.
then
((
res
)
=>
{
let
ret
=
res
[
'text'
];
if
(
ret
.
indexOf
(
"ERROR://"
)
>
-
1
)
{
throw
ret
;
}
const
arr
=
ret
.
split
(
'
\
t'
);
const
_db
=
Buffer
.
from
(
db
)
...
...
@@ -710,6 +719,9 @@ class CUSTOM {
}))
.
then
((
res
)
=>
{
let
ret
=
res
[
'text'
];
if
(
ret
.
indexOf
(
"ERROR://"
)
>
-
1
)
{
throw
ret
;
}
// 更新执行结果
this
.
updateResult
(
ret
);
this
...
...
source/modules/database/jsp/index.js
View file @
c309a434
...
...
@@ -592,6 +592,9 @@ class JSP {
}))
.
then
((
res
)
=>
{
let
ret
=
res
[
'text'
];
if
(
ret
.
indexOf
(
"ERROR://"
)
>
-
1
)
{
throw
ret
;
}
const
arr
=
ret
.
split
(
'
\
t'
);
const
_db
=
Buffer
.
from
(
db
).
toString
(
'base64'
);
// 删除子节点
...
...
@@ -647,6 +650,9 @@ class JSP {
}))
.
then
((
res
)
=>
{
let
ret
=
res
[
'text'
];
if
(
ret
.
indexOf
(
"ERROR://"
)
>
-
1
)
{
throw
ret
;
}
const
arr
=
ret
.
split
(
'
\
t'
);
const
_db
=
Buffer
.
from
(
db
)
...
...
@@ -713,6 +719,9 @@ class JSP {
}))
.
then
((
res
)
=>
{
let
ret
=
res
[
'text'
];
if
(
ret
.
indexOf
(
"ERROR://"
)
>
-
1
)
{
throw
ret
;
}
// 更新执行结果
this
.
updateResult
(
ret
);
this
...
...
source/modules/database/php/index.js
View file @
c309a434
...
...
@@ -1553,6 +1553,9 @@ class PHP {
})
).
then
((
res
)
=>
{
let
ret
=
res
[
'text'
];
if
(
ret
.
indexOf
(
"ERROR://"
)
>
-
1
)
{
throw
ret
;
}
// 更新执行结果
this
.
updateResult
(
ret
);
this
.
manager
.
query
.
layout
.
progressOff
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment