Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QG
customer-service
Commits
c4d4689a
Commit
c4d4689a
authored
Mar 05, 2022
by
吴琼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户中心地址
parent
ec733518
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
TransactionReceiptRecordServiceImpl.java
...mer/service/impl/TransactionReceiptRecordServiceImpl.java
+5
-1
No files found.
src/main/java/cn/quantgroup/customer/service/impl/TransactionReceiptRecordServiceImpl.java
View file @
c4d4689a
...
@@ -518,7 +518,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -518,7 +518,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
Map
param
=
Maps
.
newHashMap
();
Map
param
=
Maps
.
newHashMap
();
param
.
put
(
"userIds"
,
record
.
getUserId
());
param
.
put
(
"userIds"
,
record
.
getUserId
());
//String userUrl = userSysUrl + "/api/sync/listByUserIds";
//String userUrl = userSysUrl + "/api/sync/listByUserIds";
String
userUrl
=
"http://passportapi-qa.liangkebang.net/api/sync/listByUserIds"
;
String
userUrl
=
"http://passportapi-test.tjzimu.com/api/sync/listByUserIds"
;
log
.
error
(
"TransactionReceiptRecordServiceImpl updateTransactionRecordsStatus 调用用户中心 begin"
);
String
userResult
=
httpService
.
get
(
userUrl
,
param
);
String
userResult
=
httpService
.
get
(
userUrl
,
param
);
if
(
StringUtils
.
isEmpty
(
userResult
))
{
if
(
StringUtils
.
isEmpty
(
userResult
))
{
record
.
setImportStatus
(
2
);
record
.
setImportStatus
(
2
);
...
@@ -538,6 +539,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -538,6 +539,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
}
}
JSONObject
object
=
(
JSONObject
)
userArray
.
get
(
0
);
JSONObject
object
=
(
JSONObject
)
userArray
.
get
(
0
);
String
userName
=
object
.
getString
(
"name"
);
String
userName
=
object
.
getString
(
"name"
);
log
.
error
(
"TransactionReceiptRecordServiceImpl updateTransactionRecordsStatus 调用用户中心 end"
);
log
.
error
(
"TransactionReceiptRecordServiceImpl updateTransactionRecordsStatus 调用商城接口 begin"
);
if
(
StringUtils
.
isNotBlank
(
userName
)
&&
userName
.
equals
(
record
.
getUserName
())){
if
(
StringUtils
.
isNotBlank
(
userName
)
&&
userName
.
equals
(
record
.
getUserName
())){
Map
<
String
,
String
>
header
=
Maps
.
newHashMap
();
Map
<
String
,
String
>
header
=
Maps
.
newHashMap
();
header
.
put
(
"Content-type"
,
"application/json"
);
header
.
put
(
"Content-type"
,
"application/json"
);
...
@@ -557,6 +560,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -557,6 +560,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
if
(!
"0000"
.
equals
(
businessCode
)){
if
(!
"0000"
.
equals
(
businessCode
)){
throw
new
RuntimeException
(
"调用电商接口报错"
);
throw
new
RuntimeException
(
"调用电商接口报错"
);
}
}
log
.
error
(
"TransactionReceiptRecordServiceImpl updateTransactionRecordsStatus 调用商城接口 end"
);
//只有数据不存在的时候返回data
//只有数据不存在的时候返回data
if
(
StringUtils
.
isNotBlank
(
kJson
.
getString
(
"data"
))){
if
(
StringUtils
.
isNotBlank
(
kJson
.
getString
(
"data"
))){
String
kJsonResult
=
kJson
.
getString
(
"data"
);
String
kJsonResult
=
kJson
.
getString
(
"data"
);
...
...
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