Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
09851c86
Commit
09851c86
authored
Mar 27, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
fix See merge request
!10
parents
73a1a192
88983819
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+19
-6
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
09851c86
...
...
@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.service.out.impl;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
...
...
@@ -75,6 +76,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
}
else
{
unionIdJson
=
qywxUserApiService
.
getExternalUseridInfo
(
dto
.
getCorpid
(),
dto
.
getSuiteid
(),
dto
.
getExternalUserid
());
}
String
userId1
=
dto
.
getWxUserId
();
log
.
info
(
"【新增外部联系人回调】unionIdJson={}"
,
JSON
.
toJSONString
(
unionIdJson
));
String
unionId
=
""
;
...
...
@@ -84,17 +86,28 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
String
userId
=
""
;
if
(
StringUtils
.
isNotBlank
(
unionIdJson
)){
JSONObject
jo
=
JSON
.
parseObject
(
unionIdJson
);
unionId
=
jo
.
getString
(
"unionid"
);
name
=
jo
.
getString
(
"name"
);
String
external_contact
=
jo
.
getString
(
"external_contact"
);
if
(
StringUtils
.
isNotBlank
(
external_contact
)){
JSONObject
jt
=
JSON
.
parseObject
(
external_contact
);
unionId
=
jt
.
getString
(
"unionid"
);
name
=
jt
.
getString
(
"name"
);
}
follow_user
=
jo
.
getString
(
"follow_user"
);
if
(
StringUtils
.
isNotBlank
(
follow_user
)){
JSONObject
j
=
JSON
.
parseObject
(
follow_user
);
createTime
=
j
.
getString
(
"createtime"
);
userId
=
j
.
getString
(
"userid"
);
JSONArray
j
=
JSON
.
parseArray
(
follow_user
);
for
(
Object
object
:
j
)
{
String
followJson
=
JSON
.
toJSONString
(
object
);
JSONObject
follow
=
JSON
.
parseObject
(
followJson
);
userId
=
follow
.
getString
(
"userid"
);
if
(
userId
.
equals
(
userId1
)){
createTime
=
follow
.
getString
(
"createtime"
);
}
}
}
}
String
key
=
"external"
+
userId
+
"_"
+
name
+
"_"
+
createTime
;
String
key
=
"external"
+
userId
1
+
"_"
+
name
+
"_"
+
createTime
;
RedisUtil
.
lock
(
key
,
2
l
);
if
(
SELF_APP
.
equals
(
suiteid
)){
...
...
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