Browse Source

企业认证判断修改

cuixq 3 years ago
parent
commit
ede3ac5dd5

+ 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"))){