Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jd-activity
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
曾水平
jd-activity
Commits
f8ae509e
Commit
f8ae509e
authored
Jul 18, 2021
by
haojiahong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/20210718-jdEnumFix' into 'master'
京东枚举,默认波司登问题修复。 See merge request
!11
parents
7d5251f6
27742077
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Open2DuibaController.java
...com/duiba/jdactivity/controller/Open2DuibaController.java
+8
-5
No files found.
src/main/java/cn/com/duiba/jdactivity/controller/Open2DuibaController.java
View file @
f8ae509e
...
@@ -190,17 +190,20 @@ public class Open2DuibaController {
...
@@ -190,17 +190,20 @@ public class Open2DuibaController {
String
redirectUrl
=
autologinParam
.
getRedirectUrl
();
String
redirectUrl
=
autologinParam
.
getRedirectUrl
();
String
env
=
autologinParam
.
getEnv
();
String
env
=
autologinParam
.
getEnv
();
// 京东店铺
Long
venderId
=
autologinParam
.
getVenderId
();
JdShopEnum
jdShopEnum
=
Optional
Long
shopId
=
autologinParam
.
getShopId
();
.
ofNullable
(
JdShopEnum
.
getJdShop
(
autologinParam
.
getVenderId
(),
autologinParam
.
getShopId
()))
if
(
venderId
==
null
&&
shopId
==
null
)
{
.
orElse
(
JdShopEnum
.
BOSIDENG
);
//最开始波司登无这两个参数
venderId
=
JdShopEnum
.
BOSIDENG
.
getVenderId
();
shopId
=
JdShopEnum
.
BOSIDENG
.
getShopId
();
}
// 兑吧应用
// 兑吧应用
DuibaAppEnum
duibaApp
=
Optional
DuibaAppEnum
duibaApp
=
Optional
.
ofNullable
(
DuibaAppEnum
.
getDuibaApp
(
autologinParam
.
getAppKey
()))
.
ofNullable
(
DuibaAppEnum
.
getDuibaApp
(
autologinParam
.
getAppKey
()))
.
orElse
(
DuibaAppEnum
.
BOSIDENG_PROD
);
.
orElse
(
DuibaAppEnum
.
BOSIDENG_PROD
);
TbShopAccessTokenDto
accessToken
=
accessTokenUtils
.
getAccessTokenWithCache
(
jdShopEnum
.
getVenderId
(),
jdShopEnum
.
getShopId
()
);
TbShopAccessTokenDto
accessToken
=
accessTokenUtils
.
getAccessTokenWithCache
(
venderId
,
shopId
);
LOGGER
.
info
(
"获取accessToken,结果={}"
,
JSON
.
toJSONString
(
accessToken
));
LOGGER
.
info
(
"获取accessToken,结果={}"
,
JSON
.
toJSONString
(
accessToken
));
JdAppEnum
appByAppKey
=
JdAppEnum
.
getAppByAppKey
(
accessToken
.
getAppKey
());
JdAppEnum
appByAppKey
=
JdAppEnum
.
getAppByAppKey
(
accessToken
.
getAppKey
());
...
...
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