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
e747d2a5
Commit
e747d2a5
authored
Jul 18, 2022
by
陈孝伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
免登带上关注店铺信息
parent
a6aacff1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Open2LankouController.java
...om/duiba/jdactivity/controller/Open2LankouController.java
+6
-4
No files found.
src/main/java/cn/com/duiba/jdactivity/controller/Open2LankouController.java
View file @
e747d2a5
...
...
@@ -207,8 +207,9 @@ public class Open2LankouController {
Result
<
Long
>
customerPoints
=
jdApiUtil
.
getCustomerPoints
(
appByAppKey
,
pinByToken
.
getData
(),
accessToken
.
getAccessToken
());
credits
=
String
.
valueOf
(
customerPoints
.
getData
());
}
String
autoLogin
=
autologin
(
uid
,
nickName
,
avatar
,
redirectUrl
,
env
,
credits
);
// 查询是否关注店铺
Result
<
Boolean
>
follow
=
jdApiUtil
.
isFollowByPinAndVid
(
appByAppKey
,
pinByToken
.
getData
(),
shopId
);
String
autoLogin
=
autologin
(
uid
,
nickName
,
avatar
,
redirectUrl
,
env
,
credits
,
follow
!=
null
?
follow
.
getData
():
false
);
LOGGER
.
info
(
"autoLogin={}"
,
autoLogin
);
return
ResultBuilder
.
success
(
autoLogin
);
}
catch
(
BizException
e
)
{
...
...
@@ -222,7 +223,7 @@ public class Open2LankouController {
/**
* 生成免登url
*/
private
String
autologin
(
String
uid
,
String
nickName
,
String
avatar
,
String
redirectUrl
,
String
env
,
String
credits
)
throws
UnsupportedEncodingException
{
private
String
autologin
(
String
uid
,
String
nickName
,
String
avatar
,
String
redirectUrl
,
String
env
,
String
credits
,
boolean
isFollow
)
throws
UnsupportedEncodingException
{
if
(
env
!=
null
&&
env
.
equals
(
"taobao"
))
{
LOGGER
.
info
(
"taobaourl,avatar={},nickname={},uid={},url={}"
,
avatar
,
nickName
,
uid
,
redirectUrl
+
"&avatar="
+
avatar
+
"&nickname="
+
nickName
+
"&uid="
+
uid
);
...
...
@@ -242,8 +243,9 @@ public class Open2LankouController {
Map
<
String
,
String
>
dcustomParam
=
new
HashMap
<>();
dcustomParam
.
put
(
"avatar"
,
avatar
);
dcustomParam
.
put
(
"nickname"
,
nickName
);
// 带上是否关注店铺信息
dcustomParam
.
put
(
"isFollow"
,
String
.
valueOf
(
isFollow
));
getDcustom
(
dcustomParam
,
params
);
if
(
StringUtils
.
equalsIgnoreCase
(
"null"
,
redirectUrl
))
{
redirectUrl
=
""
;
}
...
...
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