|
@@ -10,6 +10,7 @@ import com.ruoyi.common.core.constant.SecurityConstants;
|
|
|
import com.ruoyi.common.core.exception.ServiceException;
|
|
|
import com.ruoyi.common.core.utils.DateUtils;
|
|
|
import com.ruoyi.common.core.utils.StringUtils;
|
|
|
+import com.ruoyi.common.core.utils.file.FileUtils;
|
|
|
import com.ruoyi.common.core.utils.uuid.IdUtils;
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
import com.ruoyi.common.security.utils.DictUtils;
|
|
@@ -41,10 +42,7 @@ import javax.net.ssl.HttpsURLConnection;
|
|
|
import javax.net.ssl.SSLContext;
|
|
|
import javax.net.ssl.SSLSocketFactory;
|
|
|
import javax.net.ssl.TrustManager;
|
|
|
-import java.io.BufferedReader;
|
|
|
-import java.io.InputStream;
|
|
|
-import java.io.InputStreamReader;
|
|
|
-import java.io.OutputStream;
|
|
|
+import java.io.*;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.net.ConnectException;
|
|
|
import java.net.URL;
|
|
@@ -201,21 +199,25 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
if (StringUtils.isEmpty(userId)) {
|
|
|
throw new ServiceException("用户已经存在");
|
|
|
}
|
|
|
+ zwywLrJbxx.setYlcode(ylRegister(zwywLrJbxx));
|
|
|
zwywLrJbxx.setId(userId);
|
|
|
zwywLrJbxx.setLrJmzjhm(DigestUtils.md5Hex(zwywLrJbxx.getLrZjhm()));
|
|
|
zwywLrJbxx.setDjbh(String.valueOf(Long.parseLong(zwywLrJbxxMapper.selectMaxBh(zwywLrJbxx.getLrHjdz().substring(0, 6))) + 1));
|
|
|
ZwywJclrShxx shxx = new ZwywJclrShxx();
|
|
|
+ BeanUtil.copyProperties(zwywLrJbxx, shxx, new CopyOptions().ignoreNullValue());
|
|
|
LnstDeptExamine examine = lnstDeptExamineMapper.selectList(new LambdaQueryWrapper<LnstDeptExamine>()
|
|
|
.eq(LnstDeptExamine::getCode, zwywLrJbxx.getLrHjdz())).stream().findFirst().orElse(null);
|
|
|
if (StringUtils.equals(zwywLrJbxx.getLzzt(), "1") || StringUtils.equals(zwywLrJbxx.getLzzt(), "2")
|
|
|
- || ObjectUtils.isNotEmpty(examine)) {
|
|
|
- BeanUtil.copyProperties(zwywLrJbxx, shxx, new CopyOptions().ignoreNullValue());
|
|
|
+ || ObjectUtils.isNotEmpty(examine) || StringUtils.equals(zwywLrJbxx.getLzzt(), "5")) {
|
|
|
if (StringUtils.equals(zwywLrJbxx.getLzzt(), "1")) {
|
|
|
shxx.setSqyy("老人照片与证件照匹配度过低");
|
|
|
} else if (StringUtils.equals(zwywLrJbxx.getLzzt(), "2")) {
|
|
|
shxx.setSqyy("存在相似老人照片");
|
|
|
- } else {
|
|
|
+ } else if (StringUtils.equals(zwywLrJbxx.getLzzt(), "5")) {
|
|
|
zwywLrJbxx.setLzzt("5");
|
|
|
+ shxx.setSqyy("特殊材料待审核");
|
|
|
+ } else {
|
|
|
+ zwywLrJbxx.setLzzt("7");
|
|
|
shxx.setSqyy("老人待审核");
|
|
|
}
|
|
|
}
|
|
@@ -227,23 +229,39 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
String xb = Integer.parseInt(zwywLrJbxx.getLrZjhm().substring(17, 18)) % 2 == 0 ? "2" : "1";
|
|
|
zwywLrJbxx.setLrXb(xb);
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
- //
|
|
|
- }
|
|
|
+ } catch (Exception ignored) {}
|
|
|
int res = zwywLrJbxxMapper.insert(zwywLrJbxx);
|
|
|
if (StringUtils.equals(zwywLrJbxx.getLzzt(), "1") || StringUtils.equals(zwywLrJbxx.getLzzt(), "2")
|
|
|
- || ObjectUtils.isNotEmpty(examine)) {
|
|
|
+ || StringUtils.equals(zwywLrJbxx.getLzzt(), "5") || StringUtils.equals(zwywLrJbxx.getLzzt(), "7")) {
|
|
|
shxx.setId(IdUtils.simpleUUID());
|
|
|
shxx.setLrId(zwywLrJbxx.getId());
|
|
|
shxx.setSqsj(DateUtils.dateTimeNow());
|
|
|
+ shxx.setLzzt(zwywLrJbxx.getLzzt());
|
|
|
zwywJclrShxxMapper.insert(shxx);
|
|
|
}
|
|
|
- if (StringUtils.equals(zwywLrJbxx.getLzzt(), "3") && StringUtils.equals(zwywLrJbxx.getSource(), "0")) {
|
|
|
- uploadBaidu(zwywLrJbxx);
|
|
|
- }
|
|
|
+// if (StringUtils.equals(zwywLrJbxx.getLzzt(), "3") && StringUtils.equals(zwywLrJbxx.getSource(), "0")) {
|
|
|
+// uploadBaidu(zwywLrJbxx);
|
|
|
+// }
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ @Transactional
|
|
|
+ @Override
|
|
|
+ public int insertZwywLrJbxxWeb(InLnstLrxx zwywLrJbxx) {
|
|
|
+ LoginUser loginUser = userService.getUserInfo(zwywLrJbxx.getLrZjhm(), SecurityConstants.INNER).getData();
|
|
|
+ InLnstLrxx query = new InLnstLrxx();
|
|
|
+ query.setLrZjhm(zwywLrJbxx.getLrZjhm());
|
|
|
+ InLnstLrxx check = zwywLrJbxxMapper.selectOne(new LambdaQueryWrapper<>(query));
|
|
|
+ if (ObjectUtils.isNotEmpty(loginUser) || ObjectUtils.isNotEmpty(check)) {
|
|
|
+ throw new ServiceException("该证件号码账号已存在");
|
|
|
+ }
|
|
|
+ zwywLrJbxx.setLzzt("0");
|
|
|
+ zwywLrJbxx.setLrJmzjhm(DigestUtils.md5Hex(zwywLrJbxx.getLrZjhm()));
|
|
|
+ zwywLrJbxx.setDjbh(String.valueOf(Long.parseLong(zwywLrJbxxMapper.selectMaxBh(zwywLrJbxx.getLrHjdz().substring(0, 6))) + 1));
|
|
|
+ zwywLrJbxx.setLrHjdz(SecurityUtils.getAreaCode());
|
|
|
+ return zwywLrJbxxMapper.insert(zwywLrJbxx);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public int sh(ZwywJclrShxx shxx) {
|
|
|
int res = 0;
|
|
@@ -266,7 +284,7 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
shxx.setSpsj(DateUtils.dateTimeNow());
|
|
|
zwywJclrShxxMapper.updateById(shxx);
|
|
|
res = zwywLrJbxxMapper.updateById(up);
|
|
|
- uploadBaidu(zwywLrJbxxMapper.selectById(shxx.getLrId()));
|
|
|
+// uploadBaidu(zwywLrJbxxMapper.selectById(shxx.getLrId()));
|
|
|
return res;
|
|
|
}
|
|
|
|
|
@@ -279,56 +297,56 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
public Map<String, String> match(InLnstLrxx zwywLrJbxx) {
|
|
|
Map<String, String> res = new LinkedHashMap<>();
|
|
|
// 匹配人脸与证件照
|
|
|
-// File ht = new File(localFilePath + zwywLrJbxx.getLrTx().replaceFirst("/uploadPath", ""));
|
|
|
-// File zjz = new File(localFilePath + zwywLrJbxx.getLrZjz().replaceFirst("/uploadPath", ""));
|
|
|
-// if (!ht.exists() || !zjz.exists()) {
|
|
|
-// throw new ServiceException("照片文件不存在 => " + localFilePath + zwywLrJbxx.getLrTx().replaceFirst("/uploadPath", "")
|
|
|
-// + " ||||||||||||||||||||||||| " + localFilePath + zwywLrJbxx.getLrZjz().replaceFirst("/uploadPath", ""));
|
|
|
-// }
|
|
|
-// String htStr = FileUtils.file2Base64(ht);
|
|
|
-// String zjzStr = FileUtils.file2Base64(zjz);
|
|
|
-// List<Map<String, String>> param = new ArrayList<>();
|
|
|
-// Map<String, String> htMap = new LinkedHashMap<>();
|
|
|
-// htMap.put("image", htStr);
|
|
|
-// htMap.put("image_type", "BASE64");
|
|
|
-// htMap.put("liveness_control", "NORMAL");
|
|
|
-// Map<String, String> zjzMap = new LinkedHashMap<>();
|
|
|
-// zjzMap.put("image", zjzStr);
|
|
|
-// zjzMap.put("image_type", "BASE64");
|
|
|
-// param.add(htMap);
|
|
|
-// param.add(zjzMap);
|
|
|
-// String token = getBaiduToken();
|
|
|
-// JSONObject matchRes = httpsRequest("https://aip.baidubce.com/rest/2.0/face/v3/match" +
|
|
|
-// "?access_token=" + token, "POST", JSONObject.toJSONString(param));
|
|
|
-// if (ObjectUtils.isNotEmpty(matchRes) && StringUtils.equals(matchRes.getString("error_msg"), "SUCCESS")) {
|
|
|
-// // 信息匹配度低待审核
|
|
|
-// if (Integer.parseInt(matchRes.getJSONObject("result").getString("score")) < Integer.parseInt(ResourceUtil.getConfigByName("baidu.similarity"))) {
|
|
|
-// res.put("lzzt", "1");
|
|
|
-// res.put("lrTxdb", matchRes.getString("result"));
|
|
|
-// res.put("msg", "老人照片与证件照匹配度低");
|
|
|
-// return res;
|
|
|
-// }
|
|
|
-// } else {
|
|
|
-// throw new ServiceException("照片不符合规则");
|
|
|
-// }
|
|
|
-// // 当前group中检索相似人脸
|
|
|
-// Map<String, String> searchMap = new LinkedHashMap<>();
|
|
|
-// searchMap.put("image", htStr);
|
|
|
-// searchMap.put("image_type", "BASE64");
|
|
|
-// searchMap.put("group_id_list", SecurityUtils.getAreaCode().substring(0, 6));
|
|
|
-// searchMap.put("match_threshold", ResourceUtil.getConfigByName("baidu.similarity"));
|
|
|
-// JSONObject searchRes = httpsRequest("https://aip.baidubce.com/rest/2.0/face/v3/search" +
|
|
|
-// "?access_token=" + token, "POST", JSONObject.toJSONString(searchMap));
|
|
|
-// if (ObjectUtils.isNotEmpty(searchRes) && StringUtils.equals(searchRes.getString("error_msg"), "SUCCESS")) {
|
|
|
-// // 存在相似人脸信息
|
|
|
-// if (searchRes.getJSONObject("result").getJSONArray("user_list").size() > 0) {
|
|
|
-// JSONArray xslr = searchRes.getJSONObject("result").getJSONArray("user_list");
|
|
|
-// res.put("lzzt", "2");
|
|
|
-// res.put("xslrZjhm", xslr.toJSONString());
|
|
|
-// res.put("msg", "存在相似人脸信息");
|
|
|
-// return res;
|
|
|
-// }
|
|
|
-// }
|
|
|
+ File ht = new File(localFilePath + zwywLrJbxx.getLrTx().replaceFirst("/uploadPath", ""));
|
|
|
+ File zjz = new File(localFilePath + zwywLrJbxx.getLrZjz().replaceFirst("/uploadPath", ""));
|
|
|
+ if (!ht.exists() || !zjz.exists()) {
|
|
|
+ throw new ServiceException("照片文件不存在 => " + localFilePath + zwywLrJbxx.getLrTx().replaceFirst("/uploadPath", "")
|
|
|
+ + " ||||||||||||||||||||||||| " + localFilePath + zwywLrJbxx.getLrZjz().replaceFirst("/uploadPath", ""));
|
|
|
+ }
|
|
|
+ String htStr = FileUtils.file2Base64(ht);
|
|
|
+ String zjzStr = FileUtils.file2Base64(zjz);
|
|
|
+ List<Map<String, String>> param = new ArrayList<>();
|
|
|
+ Map<String, String> htMap = new LinkedHashMap<>();
|
|
|
+ htMap.put("image", htStr);
|
|
|
+ htMap.put("image_type", "BASE64");
|
|
|
+ htMap.put("liveness_control", "NORMAL");
|
|
|
+ Map<String, String> zjzMap = new LinkedHashMap<>();
|
|
|
+ zjzMap.put("image", zjzStr);
|
|
|
+ zjzMap.put("image_type", "BASE64");
|
|
|
+ param.add(htMap);
|
|
|
+ param.add(zjzMap);
|
|
|
+ String token = getBaiduToken();
|
|
|
+ JSONObject matchRes = httpsRequest("https://aip.baidubce.com/rest/2.0/face/v3/match" +
|
|
|
+ "?access_token=" + token, "POST", JSONObject.toJSONString(param));
|
|
|
+ if (ObjectUtils.isNotEmpty(matchRes) && StringUtils.equals(matchRes.getString("error_msg"), "SUCCESS")) {
|
|
|
+ // 信息匹配度低待审核
|
|
|
+ if (Integer.parseInt(matchRes.getJSONObject("result").getString("score")) < Integer.parseInt(ResourceUtil.getConfigByName("baidu.similarity"))) {
|
|
|
+ res.put("lzzt", "1");
|
|
|
+ res.put("lrTxdb", matchRes.getString("result"));
|
|
|
+ res.put("msg", "老人照片与证件照匹配度低");
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ throw new ServiceException("照片不符合规则");
|
|
|
+ }
|
|
|
+ // 当前group中检索相似人脸
|
|
|
+ Map<String, String> searchMap = new LinkedHashMap<>();
|
|
|
+ searchMap.put("image", htStr);
|
|
|
+ searchMap.put("image_type", "BASE64");
|
|
|
+ searchMap.put("group_id_list", SecurityUtils.getAreaCode().substring(0, 6));
|
|
|
+ searchMap.put("match_threshold", ResourceUtil.getConfigByName("baidu.similarity"));
|
|
|
+ JSONObject searchRes = httpsRequest("https://aip.baidubce.com/rest/2.0/face/v3/search" +
|
|
|
+ "?access_token=" + token, "POST", JSONObject.toJSONString(searchMap));
|
|
|
+ if (ObjectUtils.isNotEmpty(searchRes) && StringUtils.equals(searchRes.getString("error_msg"), "SUCCESS")) {
|
|
|
+ // 存在相似人脸信息
|
|
|
+ if (searchRes.getJSONObject("result").getJSONArray("user_list").size() > 0) {
|
|
|
+ JSONArray xslr = searchRes.getJSONObject("result").getJSONArray("user_list");
|
|
|
+ res.put("lzzt", "2");
|
|
|
+ res.put("xslrZjhm", xslr.toJSONString());
|
|
|
+ res.put("msg", "存在相似人脸信息");
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ }
|
|
|
res.put("lzzt", "3");
|
|
|
// res.put("lrTxdb", matchRes.getString("result"));
|
|
|
res.put("lrTxdb", "89");
|
|
@@ -337,28 +355,28 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
}
|
|
|
|
|
|
private void uploadBaidu(InLnstLrxx lrjbxx) {
|
|
|
-// if (ObjectUtils.isEmpty(lrjbxx)) {
|
|
|
-// throw new ServiceException("老人不存在");
|
|
|
-// }
|
|
|
-// if (StringUtils.isEmpty(lrjbxx.getLrTx())) {
|
|
|
-// throw new ServiceException("老人头像数据为空");
|
|
|
-// }
|
|
|
-// File file = new File(localFilePath + lrjbxx.getLrTx().replaceFirst("/uploadPath", ""));
|
|
|
-// if (!file.exists()) {
|
|
|
-// throw new ServiceException("老人头像不存在");
|
|
|
-// }
|
|
|
-// String image = FileUtils.file2Base64(file);
|
|
|
-// Map<String, String> param = new LinkedHashMap<>();
|
|
|
-// param.put("image", image);
|
|
|
-// param.put("image_type", "BASE64");
|
|
|
-// param.put("group_id", lrjbxx.getCreateAreaCode().substring(0, 6));
|
|
|
-// param.put("user_id", lrjbxx.getLrJmzjhm());
|
|
|
-// param.put("action_type", "REPLACE");
|
|
|
-// JSONObject uploadRes = httpsRequest("https://aip.baidubce.com/rest/2.0/face/v3/faceset/user/add" +
|
|
|
-// "?access_token=" + getBaiduToken(), "POST", JSONObject.toJSONString(param));
|
|
|
-// if (ObjectUtils.isEmpty(uploadRes) || !StringUtils.equals(uploadRes.getString("error_msg"), "SUCCESS")) {
|
|
|
-// throw new ServiceException("上传到百度人脸库失败");
|
|
|
-// }
|
|
|
+ if (ObjectUtils.isEmpty(lrjbxx)) {
|
|
|
+ throw new ServiceException("老人不存在");
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(lrjbxx.getLrTx())) {
|
|
|
+ throw new ServiceException("老人头像数据为空");
|
|
|
+ }
|
|
|
+ File file = new File(localFilePath + lrjbxx.getLrTx().replaceFirst("/uploadPath", ""));
|
|
|
+ if (!file.exists()) {
|
|
|
+ throw new ServiceException("老人头像不存在");
|
|
|
+ }
|
|
|
+ String image = FileUtils.file2Base64(file);
|
|
|
+ Map<String, String> param = new LinkedHashMap<>();
|
|
|
+ param.put("image", image);
|
|
|
+ param.put("image_type", "BASE64");
|
|
|
+ param.put("group_id", lrjbxx.getCreateAreaCode().substring(0, 6));
|
|
|
+ param.put("user_id", lrjbxx.getLrJmzjhm());
|
|
|
+ param.put("action_type", "REPLACE");
|
|
|
+ JSONObject uploadRes = httpsRequest("https://aip.baidubce.com/rest/2.0/face/v3/faceset/user/add" +
|
|
|
+ "?access_token=" + getBaiduToken(), "POST", JSONObject.toJSONString(param));
|
|
|
+ if (ObjectUtils.isEmpty(uploadRes) || !StringUtils.equals(uploadRes.getString("error_msg"), "SUCCESS")) {
|
|
|
+ throw new ServiceException("上传到百度人脸库失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private String getBaiduToken() {
|
|
@@ -432,7 +450,7 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
List<SysDept> dept = sysDeptJlMapper.selectSysDept(zwywLrJbxx.getLrHjdz());
|
|
|
SysDeptJl deptJl = sysDeptJlMapper.selectSysDeptJlByCode(zwywLrJbxx.getLrHjdz());
|
|
|
if (CollectionUtils.isEmpty(dept) || ObjectUtils.isEmpty(deptJl)) {
|
|
|
- throw new ServiceException("户籍地址错误");
|
|
|
+ throw new ServiceException("该地区暂未开放");
|
|
|
}
|
|
|
String deptId = String.valueOf(dept.get(0).getDeptId());
|
|
|
user.setJgId(IdUtils.simpleUUID());
|
|
@@ -474,28 +492,24 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
@Override
|
|
|
public int updateZwywLrJbxx(InLnstLrxx zwywLrJbxx)
|
|
|
{
|
|
|
- zwywLrJbxx.setLrHjdz(null);
|
|
|
- InLnstLrxx old = zwywLrJbxxMapper.selectById(zwywLrJbxx.getId());
|
|
|
- if (ObjectUtils.isNotEmpty(old)) {
|
|
|
- if (old.getLzzt().equals("0") && StringUtils.equals(zwywLrJbxx.getLzzt(), "3")) {
|
|
|
- if (StringUtils.isNoneEmpty(zwywLrJbxx.getLrTx())) {
|
|
|
- old.setLrTx(zwywLrJbxx.getLrTx());
|
|
|
- uploadBaidu(old);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (StringUtils.equals(zwywLrJbxx.getLzzt(), "1") || StringUtils.equals(zwywLrJbxx.getLzzt(), "2")) {
|
|
|
+ if (StringUtils.equals(zwywLrJbxx.getLzzt(), "1") || StringUtils.equals(zwywLrJbxx.getLzzt(), "2")
|
|
|
+ || StringUtils.equals(zwywLrJbxx.getLzzt(), "5") || StringUtils.equals(zwywLrJbxx.getLzzt(), "7")) {
|
|
|
ZwywJclrShxx shxx = new ZwywJclrShxx();
|
|
|
BeanUtil.copyProperties(zwywLrJbxx, shxx, new CopyOptions().ignoreNullValue());
|
|
|
if (StringUtils.equals(zwywLrJbxx.getLzzt(), "1")) {
|
|
|
shxx.setSqyy("老人照片与证件照匹配度过低");
|
|
|
- } else {
|
|
|
+ } else if (StringUtils.equals(zwywLrJbxx.getLzzt(), "2")) {
|
|
|
shxx.setSqyy("存在相似老人照片");
|
|
|
+ } else if (StringUtils.equals(zwywLrJbxx.getLzzt(), "5")) {
|
|
|
+ shxx.setSqyy("特殊材料待审");
|
|
|
+ } else {
|
|
|
+ shxx.setSqyy("老人待审核");
|
|
|
}
|
|
|
shxx.setId(IdUtils.simpleUUID());
|
|
|
shxx.setLrId(zwywLrJbxx.getId());
|
|
|
zwywJclrShxxMapper.insert(shxx);
|
|
|
}
|
|
|
+ zwywLrJbxx.setLrHjdz(null);
|
|
|
return zwywLrJbxxMapper.updateById(zwywLrJbxx);
|
|
|
}
|
|
|
|
|
@@ -723,4 +737,30 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
+ private String ylRegister(InLnstLrxx lrxx) {
|
|
|
+ String r = "";
|
|
|
+ TreeMap<String, Object> lr = new TreeMap<>();
|
|
|
+ try {
|
|
|
+ lr.put("memberName", RSAUtils.encryptByPublicKey(lrxx.getLrXm(), ResourceUtil.getConfigByName("yl.enKey")));
|
|
|
+ lr.put("mobileNo", RSAUtils.encryptByPublicKey(lrxx.getLrCydh(), ResourceUtil.getConfigByName("yl.enKey")));
|
|
|
+ lr.put("certNo", RSAUtils.encryptByPublicKey(lrxx.getLrZjhm(), ResourceUtil.getConfigByName("yl.enKey")));
|
|
|
+ lr.put("remark", lrxx.getLrHjdz());
|
|
|
+ lr.put("householdAddress", lrxx.getLrHjbcxx());
|
|
|
+ lr.put("communityName", null);
|
|
|
+ lr.put("streetName", null);
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new ServiceException(e.getMessage());
|
|
|
+ }
|
|
|
+ TreeMap<String, Object> map = YlServer.publicSupport(ResourceUtil.getConfigByName("yl.hyzc"), null,
|
|
|
+ ResourceUtil.getConfigByName("yl.version"), lr);
|
|
|
+ JSONObject res = YlServer.httpsRequest(YlServer.Map2JSONStr(map));
|
|
|
+ if (res.containsKey("respCode") && StringUtils.equals(res.getString("respCode"), "0000")) {
|
|
|
+ r = res.getString("memberCode");
|
|
|
+ } else {
|
|
|
+// throw new ServiceException(res.toJSONString());
|
|
|
+ r = "1100302099";
|
|
|
+ }
|
|
|
+ return r;
|
|
|
+ }
|
|
|
}
|