Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
aserver
Project
Project
Details
Activity
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
15所TongWeb
aserver
Commits
fe9aa103
Commit
fe9aa103
authored
Jan 07, 2021
by
李德才
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容多种中间件系统地址
parent
cf531b2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
SystemController.java
...java/com/archser/aserver/controller/SystemController.java
+5
-0
No files found.
src/main/java/com/archser/aserver/controller/SystemController.java
View file @
fe9aa103
...
@@ -11,6 +11,7 @@ import com.jfinal.aop.Before;
...
@@ -11,6 +11,7 @@ import com.jfinal.aop.Before;
import
com.jfinal.aop.Clear
;
import
com.jfinal.aop.Clear
;
import
com.jfinal.aop.Inject
;
import
com.jfinal.aop.Inject
;
import
com.jfinal.core.Controller
;
import
com.jfinal.core.Controller
;
import
com.jfinal.kit.PropKit
;
import
com.jfinal.kit.Ret
;
import
com.jfinal.kit.Ret
;
import
com.jfinal.kit.StrKit
;
import
com.jfinal.kit.StrKit
;
import
com.jfinal.plugin.activerecord.tx.Tx
;
import
com.jfinal.plugin.activerecord.tx.Tx
;
...
@@ -159,6 +160,10 @@ public class SystemController extends Controller {
...
@@ -159,6 +160,10 @@ public class SystemController extends Controller {
public
void
getSystemById
()
{
public
void
getSystemById
()
{
Integer
id
=
this
.
getParaToInt
(
"id"
);
Integer
id
=
this
.
getParaToInt
(
"id"
);
System
system
=
System
.
dao
.
findById
(
id
);
System
system
=
System
.
dao
.
findById
(
id
);
if
(
PropKit
.
get
(
"basic.url"
).
contains
(
"aserver"
))
{
system
.
setUrl
(
system
.
getUrl
().
replace
(
"/"
+
system
.
getName
(),
""
));
system
.
setService
(
system
.
getService
().
replace
(
"/"
+
system
.
getService
(),
""
));
}
this
.
renderJson
(
Ret
.
ok
(
"system"
,
system
));
this
.
renderJson
(
Ret
.
ok
(
"system"
,
system
));
}
}
...
...
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