Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
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
base_platform_enterprise
gic-platform-enterprise
Commits
c0ad3076
Commit
c0ad3076
authored
Apr 10, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码
parent
9a342414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
BillingAccountController.java
...c/enterprise/web/controller/BillingAccountController.java
+7
-4
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/BillingAccountController.java
View file @
c0ad3076
...
...
@@ -10,7 +10,8 @@ import java.util.Map;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
com.gic.enterprise.web.config.Config
;
import
com.ctrip.framework.apollo.Config
;
import
com.ctrip.framework.apollo.ConfigService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -59,8 +60,8 @@ public class BillingAccountController {
private
MarketUserApiService
marketUserApiService
;
@Autowired
private
AppTokenApiService
appTokenApiService
;
@Autowired
private
Config
config
;
//
@Autowired
//
private Config config;
//private static final String URL = "https://four.gicdev.com";
...
...
@@ -280,7 +281,9 @@ public class BillingAccountController {
ServiceResponse
<
String
>
result
=
marketUserApiService
.
BindGicEnterprise
(
Long
.
valueOf
(
enterpriseId
),
null
,
null
,
null
);
if
(
result
.
isSuccess
())
{
return
RestResponse
.
success
(
config
.
getHost
()
+
"/market/gic"
+
"?loginKey="
+
result
.
getResult
()
Config
config
=
ConfigService
.
getConfig
(
"COMMON.4.0-gic-properties"
);
String
url
=
config
.
getProperty
(
"service_host"
,
""
).
replace
(
"gic"
,
""
);
return
RestResponse
.
success
(
url
+
"/market/gic"
+
"?loginKey="
+
result
.
getResult
()
+
"&enterpriseId="
+
enterpriseId
);
}
return
EnterpriseRestResponse
.
failure
(
result
);
...
...
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