From aa2c3d4deba76ade0958ff3ced88396e226a4964 Mon Sep 17 00:00:00 2001
From: duhuizhe <271000472@qq.com>
Date: 星期三, 15 五月 2024 19:57:40 +0800
Subject: [PATCH] 项目启动失败问题解决
---
ecosphere/ecosphere-common/src/main/java/com/nuvole/util/pay/allinPay/syb/SybPayUtil.java | 57 ++++++++++++++++++++++++++++-----------------------------
1 files changed, 28 insertions(+), 29 deletions(-)
diff --git a/ecosphere/ecosphere-common/src/main/java/com/nuvole/util/pay/allinPay/syb/SybPayUtil.java b/ecosphere/ecosphere-common/src/main/java/com/nuvole/util/pay/allinPay/syb/SybPayUtil.java
index 66437d3..f9e78c6 100644
--- a/ecosphere/ecosphere-common/src/main/java/com/nuvole/util/pay/allinPay/syb/SybPayUtil.java
+++ b/ecosphere/ecosphere-common/src/main/java/com/nuvole/util/pay/allinPay/syb/SybPayUtil.java
@@ -14,7 +14,6 @@
import com.nuvole.util.IdGenerator;
import com.nuvole.util.pay.allinPay.syb.param.MerchantAddParam;
import org.apache.commons.codec.binary.Base64;
-import org.apache.commons.lang.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
@@ -180,10 +179,10 @@
paramMap.put("version", version);
paramMap.put("authcode", authCode);
paramMap.put("authtype", authType);
- if (StringUtils.isNotBlank(identify)) {
+ if (StrUtil.isNotBlank(identify)) {
paramMap.put("identify", identify);
}
- if (StringUtils.isNotBlank(subAppid)) {
+ if (StrUtil.isNotBlank(subAppid)) {
paramMap.put("sub_appid", subAppid);
}
paramMap.put("randomstr", IdGenerator.getUUID());
@@ -771,7 +770,7 @@
while (it.hasNext()) {
Map.Entry<String, String> en = it.next();
String value = en.getValue();
- if (StringUtils.isBlank(value)) {
+ if (StrUtil.isBlank(value)) {
continue;
}
sf.append(en.getKey() + "=" + Convert.toStr(value)
@@ -1002,7 +1001,7 @@
paramMap.put("signtype", "RSA");
paramMap.put("chnltype", chnltype);
- if (StringUtils.isNotBlank(pid)) {
+ if (StrUtil.isNotBlank(pid)) {
paramMap.put("pid", pid);
}
String signStr = coverMap2String(paramMap);
@@ -1042,13 +1041,13 @@
paramMap.put("randomstr", IdGenerator.getUUID());
paramMap.put("signtype", "RSA");
- if (StringUtils.isNotBlank(userid)) {
+ if (StrUtil.isNotBlank(userid)) {
paramMap.put("userid", userid);
}
- if (StringUtils.isNotBlank(notifyurl)) {
+ if (StrUtil.isNotBlank(notifyurl)) {
paramMap.put("notifyurl", notifyurl);
}
- if (StringUtils.isNotBlank(pagetype)) {
+ if (StrUtil.isNotBlank(pagetype)) {
paramMap.put("pagetype", pagetype);
}
@@ -1227,88 +1226,88 @@
if (merchantAddParam == null) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS);
}
- if (StringUtils.isBlank(merchantAddParam.getRandomstr())) {
+ if (StrUtil.isBlank(merchantAddParam.getRandomstr())) {
merchantAddParam.setRandomstr(IdGenerator.getUUID());
}
- if (StringUtils.isBlank(merchantAddParam.getSigntype())) {
+ if (StrUtil.isBlank(merchantAddParam.getSigntype())) {
merchantAddParam.setSigntype("RSA");
}
// *鍟嗘埛鎬ц川
//1.浼佷笟 3.涓綋鎴� 4.涓汉 6.浜嬩笟鍗曚綅
String comproperty = merchantAddParam.getComproperty();
- if (StringUtils.isBlank(comproperty)) {
+ if (StrUtil.isBlank(comproperty)) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川闇�瑕佸~鍐�");
}
//鍟嗘埛鎬ц川涓轰紒涓�
// if ("1".equals(comproperty)) {
-// if (StringUtils.isBlank(merchantAddParam.getPubacctinfo())) {
+// if (StrUtil.isBlank(merchantAddParam.getPubacctinfo())) {
// return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川涓轰紒涓氭椂闇�瑕佸~鍐欏鍏处鎴蜂俊鎭�");
// }
// }
//鍟嗘埛鎬ц川涓轰釜浜烘椂蹇呭~
if ("4".equals(comproperty)) {
- if (StringUtils.isBlank(merchantAddParam.getLegalpic())) {
+ if (StrUtil.isBlank(merchantAddParam.getLegalpic())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川闈炰釜浜烘椂闇�瑕佷笂浼犵粡钀ヨ�呮墜鎸佽韩浠借瘉鐓х墖");
}
}
if (!"4".equals(comproperty)) {
- if (StringUtils.isBlank(merchantAddParam.getCorpbusname())) {
+ if (StrUtil.isBlank(merchantAddParam.getCorpbusname())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川闈炰釜浜烘椂闇�瑕佸~鍐欒惀涓氭墽鐓у悕绉�");
}
- if (StringUtils.isBlank(merchantAddParam.getCreditcode())) {
+ if (StrUtil.isBlank(merchantAddParam.getCreditcode())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川闈炰釜浜烘椂闇�瑕佸~鍐欑粺涓�绀句細淇$敤浠g爜璇�");
}
- if (StringUtils.isBlank(merchantAddParam.getCreditcodeexpire())) {
+ if (StrUtil.isBlank(merchantAddParam.getCreditcodeexpire())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川闈炰釜浜烘椂闇�瑕佸~鍐欑ぞ浼氫俊鐢ㄤ唬鐮佽瘉鏈夋晥鏈�");
}
- if (StringUtils.isBlank(merchantAddParam.getCorpbuspic())) {
+ if (StrUtil.isBlank(merchantAddParam.getCorpbuspic())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川闈炰釜浜烘椂闇�瑕佸~鍐欒惀涓氭墽鐓х収鐗�");
}
- if (StringUtils.isBlank(merchantAddParam.getBusconactperson())) {
+ if (StrUtil.isBlank(merchantAddParam.getBusconactperson())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川闈炰釜浜烘椂闇�瑕佸~鍐欎笟鍔¤仈绯讳汉濮撳悕");
}
- if (StringUtils.isBlank(merchantAddParam.getBusconacttel())) {
+ if (StrUtil.isBlank(merchantAddParam.getBusconacttel())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川闈炰釜浜烘椂闇�瑕佸~鍐欎笟鍔¤仈绯讳汉鐢佃瘽");
}
}
//鍟嗘埛鎬ц川涓轰紒涓氥�佷釜浣撴埛鏃跺繀濉�
if ("1".equals(comproperty) || "3".equals(comproperty)) {
- if (StringUtils.isBlank(merchantAddParam.getHoldername())) {
+ if (StrUtil.isBlank(merchantAddParam.getHoldername())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川涓轰紒涓氥�佷釜浣撴埛鏃堕渶瑕佸~鍐欐帶鑲¤偂涓滃鍚�");
}
- if (StringUtils.isBlank(merchantAddParam.getHolderidno())) {
+ if (StrUtil.isBlank(merchantAddParam.getHolderidno())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川涓轰紒涓氥�佷釜浣撴埛鏃堕渶瑕佸~鍐欐帶鑲¤偂涓滆韩浠借瘉");
}
- if (StringUtils.isBlank(merchantAddParam.getHolderexpire())) {
+ if (StrUtil.isBlank(merchantAddParam.getHolderexpire())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川涓轰紒涓氥�佷釜浣撴埛鏃堕渶瑕佸~鍐欐帶鑲¤偂涓滄湁鏁堟湡");
}
- if (StringUtils.isBlank(merchantAddParam.getRegisterfund())) {
+ if (StrUtil.isBlank(merchantAddParam.getRegisterfund())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川涓轰紒涓氥�佷釜浣撴埛鏃堕渶瑕佸~鍐欐敞鍐岃祫鏈�");
}
- if (StringUtils.isBlank(merchantAddParam.getStafftotal())) {
+ if (StrUtil.isBlank(merchantAddParam.getStafftotal())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川涓轰紒涓氥�佷釜浣撴埛鏃堕渶瑕佸~鍐欏憳宸ヤ汉鏁�");
}
- if (StringUtils.isBlank(merchantAddParam.getOperatelimit())) {
+ if (StrUtil.isBlank(merchantAddParam.getOperatelimit())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川涓轰紒涓氥�佷釜浣撴埛鏃堕渶瑕佸~鍐欑粡钀ュ尯鍩�");
}
- if (StringUtils.isBlank(merchantAddParam.getInspect())) {
+ if (StrUtil.isBlank(merchantAddParam.getInspect())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鍟嗘埛鎬ц川涓轰紒涓氥�佷釜浣撴埛鏃堕渶瑕佸~鍐欑粡钀ュ湴娈�");
}
}
-// if (StringUtils.isBlank(merchantAddParam.getAddfacusid())) {
+// if (StrUtil.isBlank(merchantAddParam.getAddfacusid())) {
// return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "鎵�鍦ㄦ満鏋勮祫閲戝綊闆嗘椂锛岃瀛楁涓嶈兘涓虹┖");
// }
// 缁撶畻璐︽埛 0-瀵圭 1-瀵瑰叕
String accttype = merchantAddParam.getAccttype();
- if (StringUtils.isBlank(accttype)) {
+ if (StrUtil.isBlank(accttype)) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "缁撶畻璐︽埛绫诲瀷涓嶈兘涓虹┖");
}
if ("0".equals(accttype)) {
- if (StringUtils.isBlank(merchantAddParam.getSettidno())) {
+ if (StrUtil.isBlank(merchantAddParam.getSettidno())) {
return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "缁撶畻璐︽埛瀵圭鏃讹紝缁撶畻浜鸿韩浠借瘉鍙蜂笉鑳戒负绌�");
}
}
--
Gitblit v1.9.1