|
@@ -36,6 +36,7 @@ import com.sunxung.factoring.service.supplier.ISupplierInfoService;
|
|
|
import com.sunxung.factoring.service.sys.FileStorageService;
|
|
|
import com.sunxung.factoring.service.sys.UserService;
|
|
|
import com.sunxung.factoring.service.tradingPlatform.PlatformService;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.logging.log4j.LogManager;
|
|
|
import org.apache.logging.log4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -218,29 +219,45 @@ public class PurchContractConfirmController {
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Object getAuthInfo(@RequestBody Platform platform) throws ValidatorException {
|
|
|
String result = ElectronicSignatureUtil.getAuthInfoDetail(platform.getFddCustomerId(), "2");
|
|
|
- JSONObject jsonObject = JSONObject.parseObject(result);
|
|
|
- JSONObject data = jsonObject.getJSONObject("data");
|
|
|
- JSONObject company = data.getJSONObject("company");
|
|
|
- String verifyType = company.getString("verifyType");
|
|
|
- switch (verifyType){
|
|
|
- case "0":
|
|
|
- verifyType = "银行卡认证";
|
|
|
- break;
|
|
|
- case "1":
|
|
|
- verifyType = "纸质审核认证";
|
|
|
- break;
|
|
|
- case "2":
|
|
|
- verifyType = "法人认证";
|
|
|
- break;
|
|
|
- case "4":
|
|
|
- verifyType = "法人授权认证";
|
|
|
- break;
|
|
|
-
|
|
|
+ logger.error("法大大认证信息:==================================================="+result);
|
|
|
+ String verifyType = null;
|
|
|
+ String legalName = null;
|
|
|
+ String legal = null;
|
|
|
+ String legalMobile = null;
|
|
|
+ if (StringUtil.isNotEmpty(result)){
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(result);
|
|
|
+ if (jsonObject != null){
|
|
|
+ JSONObject data = jsonObject.getJSONObject("data");
|
|
|
+ if (data != null){
|
|
|
+ JSONObject company = data.getJSONObject("company");
|
|
|
+ if (company != null){
|
|
|
+ verifyType = company.getString("verifyType");
|
|
|
+ if (StringUtils.isNotEmpty(verifyType)){
|
|
|
+ switch (verifyType){
|
|
|
+ case "0":
|
|
|
+ verifyType = "银行卡认证";
|
|
|
+ break;
|
|
|
+ case "1":
|
|
|
+ verifyType = "纸质审核认证";
|
|
|
+ break;
|
|
|
+ case "2":
|
|
|
+ verifyType = "法人认证";
|
|
|
+ break;
|
|
|
+ case "4":
|
|
|
+ verifyType = "法人授权认证";
|
|
|
+ break;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ legalName = company.getString("legalName");
|
|
|
+ legal = company.getString("legal");
|
|
|
+ }
|
|
|
+ JSONObject manager = data.getJSONObject("manager");
|
|
|
+ legalMobile = manager.getString("mobile");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- String legalName = company.getString("legalName");
|
|
|
- String legal = company.getString("legal");
|
|
|
- JSONObject manager = data.getJSONObject("manager");
|
|
|
- String legalMobile = manager.getString("mobile");
|
|
|
+
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("verifyType",verifyType);
|
|
|
json.put("legalName",legalName);
|