cuixq преди 3 години
родител
ревизия
c46c476f36
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      tianhu-system/src/main/java/com/tianhu/system/companyAuth/controller/OwnAuthController.java

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

@@ -1291,6 +1291,9 @@ public class OwnAuthController extends BaseController {
             }
             }
         System.out.print("开户结果==========>" + companyAccount);
+        if(companyAccount.getJSONObject("errorCode")!=null){
+           return  R.fail(companyAccount.getJSONObject("errorMessage"));
+        }
         //返回cfca用户id
         if(companyAccount.getJSONObject("enterprise")!=null||CommonUtil.isNotEmpty(companyAccount.getJSONObject("enterprise").getString("userId"))){
             String userId = companyAccount.getJSONObject("enterprise").getString("userId");