|
@@ -108,7 +108,7 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
String body = xs.toXML(applyInfo);
|
|
|
body = body.substring(body.indexOf("<user>")+6,body.indexOf("</user>"));
|
|
|
//推送mec注册接口
|
|
|
- log.info("推送到用户数据到mec注册 body: " + body);
|
|
|
+// log.info("推送到用户数据到mec注册 body: " + body);
|
|
|
body = getBody(body,121301);
|
|
|
Date date = new Date();
|
|
|
try {
|
|
@@ -121,7 +121,7 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
body = xs.toXML(applyClass);
|
|
|
body = body.substring(body.indexOf("<body>")+6,body.indexOf("</body>"));
|
|
|
//推送mec用户缴费
|
|
|
- log.info("推送到用户数据到mec缴费 body: " + body);
|
|
|
+// log.info("推送到用户数据到mec缴费 body: " + body);
|
|
|
getBody(body,125218);
|
|
|
applyInfoDao.update(applyInfo);
|
|
|
return true;
|
|
@@ -301,7 +301,7 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
MecUser mecUser = mecUserDao.get(userId);
|
|
|
if(mecUser == null){
|
|
|
String body = "<body><userId>" + userId + "</userId></body>";
|
|
|
- log.info("获取学员信息mec body: " + body);
|
|
|
+// log.info("获取学员信息mec body: " + body);
|
|
|
body = getBody(body, 121313);
|
|
|
if(!StringUtils.isEmpty(body)){
|
|
|
body = new String(Base64.getDecoder().decode(body));
|
|
@@ -324,7 +324,7 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
xs.autodetectAnnotations(true);
|
|
|
String body = xs.toXML(renewBean);
|
|
|
body = body.substring(body.indexOf("<body>")+6,body.indexOf("</body>"));
|
|
|
- log.info("推送续费数据到mec body: " + body);
|
|
|
+// log.info("推送续费数据到mec body: " + body);
|
|
|
body = CDesECB.encode(key,body);
|
|
|
RequestParamBean requestParamBean = new RequestParamBean();
|
|
|
requestParamBean.setBody(body);
|
|
@@ -335,7 +335,7 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
xs.autodetectAnnotations(true);
|
|
|
xs.toXML(requestParamBean,writer);
|
|
|
body = HttpUtil.postXmlData(writer.toString(), url);
|
|
|
- log.info("mec响应的续费数据 body: " + body);
|
|
|
+// log.info("mec响应的续费数据 body: " + body);
|
|
|
body = body.substring(body.indexOf("<errCode>") + 9, body.indexOf("</errCode>"));
|
|
|
// body = new String(CDesECB.decode(key,body.getBytes()));
|
|
|
// body = CDesECB.decodeValue(key,body);
|
|
@@ -362,7 +362,7 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
public boolean mecUserIsExist(String phone) {
|
|
|
try {
|
|
|
String body = "<body><uType>1</uType><uName>" + phone +"</uName></body>";
|
|
|
- log.info("用户是否存在mec系统 body: " + body);
|
|
|
+// log.info("用户是否存在mec系统 body: " + body);
|
|
|
body = getBody(body, 120431);
|
|
|
body = new String(Base64.getDecoder().decode(body));
|
|
|
if(StringUtils.isEmpty(body)){
|
|
@@ -400,7 +400,7 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
xs.autodetectAnnotations(true);
|
|
|
xs.toXML(requestParamBean,writer);
|
|
|
body = HttpUtil.postXmlData(writer.toString(), url);
|
|
|
- log.info("mec响应参数 body: " + body + " ,cmd: " + cmd);
|
|
|
+// log.info("mec响应参数 body: " + body + " ,cmd: " + cmd);
|
|
|
return body.substring(body.indexOf("<body>")+6,body.indexOf("</body>"));
|
|
|
}
|
|
|
|