|
@@ -90,7 +90,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 {
|
|
@@ -103,7 +103,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;
|
|
@@ -211,7 +211,7 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
public Map<String, Object> getUserRegisterViewDetail(Integer stuId) {
|
|
|
Map<String, Object> vIewDetail = applyInfoDao.getUserRegisterVIewDetail(stuId);
|
|
|
String subName = vIewDetail.get("sub_name_").toString();
|
|
|
- if(subName.contains("圆号") || subName.contains("上低音") ||subName.contains("长号") ||subName.contains("大号")){
|
|
|
+ if(subName.contains("圆号") || subName.contains("上低音") ||subName.contains("长号") ||subName.contains("大号") || subName.contains("次中音号")){
|
|
|
vIewDetail.put("isCopperPipe",true);
|
|
|
}else {
|
|
|
vIewDetail.put("isCopperPipe",false);
|
|
@@ -279,7 +279,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));
|
|
@@ -302,7 +302,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);
|
|
@@ -313,7 +313,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);
|
|
@@ -340,7 +340,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)){
|
|
@@ -398,7 +398,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>"));
|
|
|
}
|
|
|
|