|
|
@ -124,8 +124,8 @@ public class CodeServiceImpl implements CodeService { |
|
|
|
throw new RenException(result.getCode(), result.getMsg()); |
|
|
|
} |
|
|
|
//获取小程序居民端与工作端名称
|
|
|
|
String resiName = miniInfoDao.getNickName(formDTO.getCustomerId(), "resi"); |
|
|
|
String workName = miniInfoDao.getNickName(formDTO.getCustomerId(), "work"); |
|
|
|
String resiName = miniInfoDao.getNickName(formDTO.getCustomerId(), CodeConstant.RESI); |
|
|
|
String workName = miniInfoDao.getNickName(formDTO.getCustomerId(), CodeConstant.WORK); |
|
|
|
String extJson = getExtJson(formDTO); |
|
|
|
WxExtJson wxExtJson = JSONObject.parseObject(extJson, WxExtJson.class); |
|
|
|
wxExtJson.setExtAppid(authInfo.getAuthorizerAppid()); |
|
|
@ -133,6 +133,11 @@ public class CodeServiceImpl implements CodeService { |
|
|
|
wxExtJson.getExt().setResiName(resiName); |
|
|
|
wxExtJson.getExt().setWorkName(workName); |
|
|
|
wxExtJson.getExt().setCustomerName(null == result.getData().getCustomerName()?"":result.getData().getCustomerName()); |
|
|
|
if (CodeConstant.RESI.equals(formDTO.getClientType())) { |
|
|
|
wxExtJson.getWindow().setNavigationBarTitleText(resiName); |
|
|
|
} else { |
|
|
|
wxExtJson.getWindow().setNavigationBarTitleText(workName); |
|
|
|
} |
|
|
|
extJson = JSON.toJSONString(wxExtJson); |
|
|
|
CodeExtDTO codeExtDTO = codeExtService.getExtByCustomer(formDTO.getCustomerId(), formDTO.getClientType()); |
|
|
|
if (null == codeExtDTO) { |
|
|
|