Commit c4d4689a authored by 吴琼's avatar 吴琼

修改用户中心地址

parent ec733518
......@@ -518,7 +518,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
Map param = Maps.newHashMap();
param.put("userIds",record.getUserId());
//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);
if (StringUtils.isEmpty(userResult)) {
record.setImportStatus(2);
......@@ -538,6 +539,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
}
JSONObject object= (JSONObject) userArray.get(0);
String userName = object.getString("name");
log.error("TransactionReceiptRecordServiceImpl updateTransactionRecordsStatus 调用用户中心 end");
log.error("TransactionReceiptRecordServiceImpl updateTransactionRecordsStatus 调用商城接口 begin");
if(StringUtils.isNotBlank(userName) && userName.equals(record.getUserName())){
Map<String, String> header = Maps.newHashMap();
header.put("Content-type", "application/json");
......@@ -557,6 +560,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
if(!"0000".equals(businessCode)){
throw new RuntimeException("调用电商接口报错");
}
log.error("TransactionReceiptRecordServiceImpl updateTransactionRecordsStatus 调用商城接口 end");
//只有数据不存在的时候返回data
if(StringUtils.isNotBlank(kJson.getString("data"))){
String kJsonResult = kJson.getString("data");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment