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
132182f6
Commit
132182f6
authored
Apr 10, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网址配置
parent
a605865f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
BillingAccountController.java
...c/enterprise/web/controller/BillingAccountController.java
+5
-2
LoginController.java
...ava/com/gic/operation/web/controller/LoginController.java
+7
-4
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/BillingAccountController.java
View file @
132182f6
...
...
@@ -10,6 +10,7 @@ import java.util.Map;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
com.gic.enterprise.web.config.Config
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -58,9 +59,11 @@ public class BillingAccountController {
private
MarketUserApiService
marketUserApiService
;
@Autowired
private
AppTokenApiService
appTokenApiService
;
@Autowired
private
Config
config
;
private
static
final
String
URL
=
"https://four.gicdev.com"
;
//
private static final String URL = "https://four.gicdev.com";
/**
* 账户余额相关信息
...
...
@@ -277,7 +280,7 @@ public class BillingAccountController {
ServiceResponse
<
String
>
result
=
marketUserApiService
.
BindGicEnterprise
(
Long
.
valueOf
(
enterpriseId
),
null
,
null
,
null
);
if
(
result
.
isSuccess
())
{
return
RestResponse
.
success
(
URL
+
"/market/gic"
+
"?loginKey="
+
result
.
getResult
()
return
RestResponse
.
success
(
config
.
getHost
()
+
"/market/gic"
+
"?loginKey="
+
result
.
getResult
()
+
"&enterpriseId="
+
enterpriseId
);
}
return
EnterpriseRestResponse
.
failure
(
result
);
...
...
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/LoginController.java
View file @
132182f6
...
...
@@ -5,6 +5,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
com.gic.operation.web.config.Config
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -45,9 +46,11 @@ public class LoginController {
private
UserApiService
userApiService
;
@Autowired
private
MarketUserApiService
marketUserApiService
;
@Autowired
private
Config
config
;
private
static
final
String
URL
=
"https://four.gicdev.com"
;
//
private static final String URL = "https://four.gicdev.com";
/**
* 商户绑定服务市场
...
...
@@ -80,7 +83,7 @@ public class LoginController {
ServiceResponse
<
String
>
result
=
marketUserApiService
.
BindGicEnterprise
(
Long
.
valueOf
(
enterpriseId
),
null
,
null
,
null
);
if
(
result
.
isSuccess
())
{
return
RestResponse
.
success
(
URL
+
"/market/gic"
+
"?loginKey="
+
result
.
getResult
()
return
RestResponse
.
success
(
config
.
getHost
()
+
"/market/gic"
+
"?loginKey="
+
result
.
getResult
()
+
"&enterpriseId="
+
enterpriseId
);
}
return
EnterpriseRestResponse
.
failure
(
result
);
...
...
@@ -89,7 +92,7 @@ public class LoginController {
@RequestMapping
(
"login-gic"
)
public
RestResponse
login
(
Integer
enterpriseId
,
String
redirectUrl
)
throws
IOException
{
if
(
StringUtils
.
isBlank
(
redirectUrl
))
{
redirectUrl
=
URL
+
"/damo-system/overview/index"
;
redirectUrl
=
config
.
getHost
()
+
"/damo-system/overview/index"
;
// redirectUrl = "https://four.gicdev.com/cost-center/billing-center/overview";
}
String
token
;
...
...
@@ -165,7 +168,7 @@ public class LoginController {
//塞缓存
token
=
UserDetailUtils
.
setUserDetail
(
userDetail
);
String
SSO_LOGIN_URL
=
URL
+
"/gic-auth-web/login-for-operation"
;
String
SSO_LOGIN_URL
=
config
.
getHost
()
+
"/gic-auth-web/login-for-operation"
;
return
RestResponse
.
success
(
SSO_LOGIN_URL
+
"?token="
+
token
+
"&redirectUrl="
+
redirectUrl
);
}
return
RestResponse
.
success
();
...
...
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