|
@@ -584,9 +584,10 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
if (Validator.isEmpty(userVo.getRealName()) || Validator.isEmpty(userVo.getIdCard()) || Validator.isEmpty(userVo.getTelPhone())) {
|
|
if (Validator.isEmpty(userVo.getRealName()) || Validator.isEmpty(userVo.getIdCard()) || Validator.isEmpty(userVo.getTelPhone())) {
|
|
return "用户信息缺失";
|
|
return "用户信息缺失";
|
|
}
|
|
}
|
|
- log.info("报名信息推送OFFICIALPUSH_INFOACCOUNT" + JSON.toJSONString(OFFICIALPUSH_INFOACCOUNT));
|
|
|
|
- log.info("报名信息推送OFFICIALPUSH_INFOACCOUNT" + JSON.toJSONString(OFFICIALPUSH_INFOACCOUNT));
|
|
|
|
- log.info("班级名称" + userVo.getOfficialName());
|
|
|
|
|
|
+ if(Validator.isNotEmpty(configService.selectConfigByKeyNoCache("office.account"))){
|
|
|
|
+ OFFICIALPUSH_INFOACCOUNT = configService.selectConfigByKeyNoCache("office.account");
|
|
|
|
+ OFFICIALPUSH_TOKEN = configService.selectConfigByKeyNoCache("office.token");
|
|
|
|
+ }
|
|
Map<String, String> params = new HashMap<>();
|
|
Map<String, String> params = new HashMap<>();
|
|
params.put("zh", OFFICIALPUSH_INFOACCOUNT);
|
|
params.put("zh", OFFICIALPUSH_INFOACCOUNT);
|
|
params.put("bh", userVo.getOfficialName());
|
|
params.put("bh", userVo.getOfficialName());
|
|
@@ -595,6 +596,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
params.put("dh", userVo.getTelPhone());
|
|
params.put("dh", userVo.getTelPhone());
|
|
params.put("bmrq", DateUtils.timestampToDate(bmrq));
|
|
params.put("bmrq", DateUtils.timestampToDate(bmrq));
|
|
String dataTxt = params.get("zh") + params.get("bh") + params.get("xm") + params.get("sfz") + params.get("dh") + params.get("bmrq");
|
|
String dataTxt = params.get("zh") + params.get("bh") + params.get("xm") + params.get("sfz") + params.get("dh") + params.get("bmrq");
|
|
|
|
+ log.info("报名信息推送参数"+ dataTxt);
|
|
String encrypted = dataSign(dataTxt, OFFICIALPUSH_TOKEN);
|
|
String encrypted = dataSign(dataTxt, OFFICIALPUSH_TOKEN);
|
|
params.put("SignMsg", encrypted);
|
|
params.put("SignMsg", encrypted);
|
|
String respone = "";
|
|
String respone = "";
|
|
@@ -641,7 +643,13 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
public ClassPeriodStudentVo DecryptOfficialInfo(ClassGradeDecryptQueryBo bo) {
|
|
public ClassPeriodStudentVo DecryptOfficialInfo(ClassGradeDecryptQueryBo bo) {
|
|
String pars;
|
|
String pars;
|
|
try {
|
|
try {
|
|
- ServletUtils.getRequestAttributes().getResponse().setHeader("TenantId", bo.getTenantId());
|
|
|
|
|
|
+ if(Validator.isNotEmpty(bo.getTenantId())){
|
|
|
|
+ ServletUtils.getRequestAttributes().getResponse().setHeader("TenantId", bo.getTenantId());
|
|
|
|
+ }
|
|
|
|
+ if(Validator.isNotEmpty(configService.selectConfigByKeyNoCache("office.account"))){
|
|
|
|
+ OFFICIALPUSH_INFOACCOUNT = configService.selectConfigByKeyNoCache("office.account");
|
|
|
|
+ OFFICIALPUSH_TOKEN = configService.selectConfigByKeyNoCache("office.token");
|
|
|
|
+ }
|
|
// data = "DjqbGTiWrtqJvLSKObhAB1F+s1vPmc1XWNagrHjwlK1JiCO1CuicJEcP+MzZoUyiSfDLeV2GZio=";
|
|
// data = "DjqbGTiWrtqJvLSKObhAB1F+s1vPmc1XWNagrHjwlK1JiCO1CuicJEcP+MzZoUyiSfDLeV2GZio=";
|
|
// data ="Z4lUlc48qtBmZcg4tbNmt767KDeYhu6h+Xz8ySE5MqYSy3tF1/m2cTLtAQRlHV9X4JtXoCwapll/IiMVNyrOwsZD9Ujjf682";
|
|
// data ="Z4lUlc48qtBmZcg4tbNmt767KDeYhu6h+Xz8ySE5MqYSy3tF1/m2cTLtAQRlHV9X4JtXoCwapll/IiMVNyrOwsZD9Ujjf682";
|
|
byte[] Keys = new byte[]{0x22, 0x34, 0x76, 0x58, (byte) 0x90, (byte) 0xAB, (byte) 0xAD, (byte) 0xBF};
|
|
byte[] Keys = new byte[]{0x22, 0x34, 0x76, 0x58, (byte) 0x90, (byte) 0xAB, (byte) 0xAD, (byte) 0xBF};
|