소스 검색

企业认证判断修改

cuixq 3 년 전
부모
커밋
ede3ac5dd5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tianhu-system/src/main/java/com/tianhu/system/companyAuth/controller/OwnAuthController.java

+ 2 - 2
tianhu-system/src/main/java/com/tianhu/system/companyAuth/controller/OwnAuthController.java

@@ -1301,8 +1301,8 @@ public class OwnAuthController extends BaseController {
             }
             }
         System.out.print("开户结果==========>" + companyAccount);
-        if(companyAccount.getJSONObject("head")==null){
-           return  R.fail(companyAccount.getJSONObject("errorMessage"));
+        if(!companyAccount.has("head")){
+           return  R.fail(companyAccount.get("errorMessage")+"请重新提交");
         }
         //返回cfca用户id
         if(companyAccount.getJSONObject("enterprise")!=null||CommonUtil.isNotEmpty(companyAccount.getJSONObject("enterprise").getString("userId"))){