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
46000e0c
Commit
46000e0c
authored
May 27, 2021
by
曾水平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
b7ebaf28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Open2DuibaController.java
...com/duiba/jdactivity/controller/Open2DuibaController.java
+2
-1
No files found.
src/main/java/cn/com/duiba/jdactivity/controller/Open2DuibaController.java
View file @
46000e0c
...
@@ -276,7 +276,8 @@ public class Open2DuibaController {
...
@@ -276,7 +276,8 @@ public class Open2DuibaController {
JdAppEnum
appEnum
=
JdAppEnum
.
getAppByAppKey
(
accessToken
.
getAppKey
());
JdAppEnum
appEnum
=
JdAppEnum
.
getAppByAppKey
(
accessToken
.
getAppKey
());
String
pin
=
convert2Pin
(
appEnum
,
accessToken
.
getAccessToken
(),
uid
);
String
pin
=
convert2Pin
(
appEnum
,
accessToken
.
getAccessToken
(),
uid
);
Result
<
EssentialCustomerInfo
>
result
=
jdApiUtil
.
getCustomer
(
appEnum
,
accessToken
.
getAccessToken
(),
pin
);
Result
<
EssentialCustomerInfo
>
result
=
jdApiUtil
.
getCustomer
(
appEnum
,
accessToken
.
getAccessToken
(),
pin
);
boolean
isMember
=
result
.
getSuccess
()
&&
result
.
getData
()
!=
null
;
boolean
isMember
=
result
.
getSuccess
()
&&
result
.
getData
()
!=
null
&&
(
result
.
getData
().
getLevelAtShop
()
!=
null
||
result
.
getData
().
getCustomerPin
()
!=
null
);
LOGGER
.
info
(
"是否是会员,isMember={},uid={},pin={}"
,
isMember
,
uid
,
pin
);
LOGGER
.
info
(
"是否是会员,isMember={},uid={},pin={}"
,
isMember
,
uid
,
pin
);
return
ResultBuilder
.
success
(
isMember
);
return
ResultBuilder
.
success
(
isMember
);
}
catch
(
BizException
e
)
{
}
catch
(
BizException
e
)
{
...
...
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