Преглед на файлове

企业认证判断修改

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