Commit 07196b7d authored by mx's avatar mx

Merge remote-tracking branch 'origin/import' into import

parents fa1dea31 33374fcb
...@@ -571,19 +571,19 @@ public class JieLinkServiceImpl implements IJieLinkService { ...@@ -571,19 +571,19 @@ public class JieLinkServiceImpl implements IJieLinkService {
StringBuffer uriAddr = new StringBuffer(); StringBuffer uriAddr = new StringBuffer();
uriAddr.append(jieLinkUri).append(apiUri); uriAddr.append(jieLinkUri).append(apiUri);
ResponseEntity<JSONObject> responseEntity = restTemplate.postForEntity(uriAddr.toString(), httpEntity, JSONObject.class); ResponseEntity<JSONObject> responseEntity = restTemplate.postForEntity(uriAddr.toString(), httpEntity, JSONObject.class);
try { try{
if (HttpStatus.OK.value() == responseEntity.getStatusCode().value()) { if(HttpStatus.OK.value() ==responseEntity.getStatusCode().value()) {
log.debug("pullVisitUserQrCode接口返回信息:" + responseEntity.getBody().toJSONString()); log.debug("pullVisitUserQrCode接口返回信息:"+responseEntity.getBody().toJSONString());
JieLinkResultDto<JSONObject> resultData = JSONObject.toJavaObject(responseEntity.getBody(), JieLinkResultDto.class); JSONObject body = responseEntity.getBody();
if (StringUtils.equals(resultData.getCode(), "0")) { if(body.containsKey("code") && StringUtils.equals("0",body.getString("code"))){
JSONObject data = resultData.getData(); JSONObject data = body.getJSONObject("data");
if (data.containsKey("qrCodeData")) { if(data.containsKey("qrCodeData")){
return data.getString("qrCodeData"); return data.getString("qrCodeData");
} else { } else {
return null; return null;
} }
} else { }else{
log.error("pullVisitUserQrCode接口返回错误信息:" + resultData.getMsg()); log.error("pullVisitUserQrCode接口返回错误信息:"+body.getString("msg"));
//请求返回结果错误啦 //请求返回结果错误啦
return null; return null;
} }
......
...@@ -273,9 +273,9 @@ public class SysUserController extends CyPaginationController<SysUser> { ...@@ -273,9 +273,9 @@ public class SysUserController extends CyPaginationController<SysUser> {
* @deprecated 前端生成 二维码 * @deprecated 前端生成 二维码
* 后端返回 base64 * 后端返回 base64
*/ */
@GetMapping("/getTradeScan/{personId:\\w+}") @GetMapping("/getTradeScan")
@ResponseBody @ResponseBody
public CyResult getTradeScan(@PathVariable String personId) { public CyResult getTradeScan(String personId) {
// 根据用户id获取personId // 根据用户id获取personId
String codeUrl = ""; String codeUrl = "";
if (synchronization) if (synchronization)
......
...@@ -166,7 +166,7 @@ public class VisitInfomationServiceImpl extends ServiceImpl<VisitInfomationRepos ...@@ -166,7 +166,7 @@ public class VisitInfomationServiceImpl extends ServiceImpl<VisitInfomationRepos
sysUserList.get(0).setName(u.getUserName()); sysUserList.get(0).setName(u.getUserName());
sysUserRepositorys.updateSysUser(sysUserList.get(0)); sysUserRepositorys.updateSysUser(sysUserList.get(0));
} }
u.setPersonId(sysUserList.get(0).getPersonId()); u.setPersonId(UUID.randomUUID().toString());
u.setUserId(sysUserList.get(0).getBusinessId()); u.setUserId(sysUserList.get(0).getBusinessId());
} }
} }
......
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