Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
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
openSource
apollo
Commits
a5ff9a98
Commit
a5ff9a98
authored
Apr 15, 2016
by
Yiming Liu
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #97 from lepdou/portal
save app to dev env
parents
b351b484
937b2c00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
AppService.java
...main/java/com/ctrip/apollo/portal/service/AppService.java
+3
-2
No files found.
apollo-portal/src/main/java/com/ctrip/apollo/portal/service/AppService.java
View file @
a5ff9a98
...
@@ -10,6 +10,7 @@ import org.springframework.stereotype.Service;
...
@@ -10,6 +10,7 @@ import org.springframework.stereotype.Service;
import
com.ctrip.apollo.core.enums.Env
;
import
com.ctrip.apollo.core.enums.Env
;
import
com.ctrip.apollo.core.dto.AppDTO
;
import
com.ctrip.apollo.core.dto.AppDTO
;
import
com.ctrip.apollo.core.exception.ServiceException
;
import
com.ctrip.apollo.portal.PortalSettings
;
import
com.ctrip.apollo.portal.PortalSettings
;
import
com.ctrip.apollo.portal.api.AdminServiceAPI
;
import
com.ctrip.apollo.portal.api.AdminServiceAPI
;
import
com.ctrip.apollo.portal.entity.ClusterNavTree
;
import
com.ctrip.apollo.portal.entity.ClusterNavTree
;
...
@@ -46,10 +47,10 @@ public class AppService {
...
@@ -46,10 +47,10 @@ public class AppService {
app
.
setDataChangeCreatedBy
(
createBy
);
app
.
setDataChangeCreatedBy
(
createBy
);
app
.
setDataChangeCreatedTime
(
new
Date
());
app
.
setDataChangeCreatedTime
(
new
Date
());
app
.
setDataChangeLastModifiedBy
(
createBy
);
app
.
setDataChangeLastModifiedBy
(
createBy
);
return
appAPI
.
save
(
Env
.
LOCAL
,
app
);
return
appAPI
.
save
(
Env
.
DEV
,
app
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"oops! save app error. app id:{}"
,
app
.
getAppId
(),
e
);
logger
.
error
(
"oops! save app error. app id:{}"
,
app
.
getAppId
(),
e
);
throw
e
;
throw
new
ServiceException
(
"call service error."
)
;
}
}
}
}
...
...
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