wugg 3 years ago
parent
commit
98bf15f87d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Newfill.php

+ 1 - 1
app/admin/controller/Newfill.php

@@ -211,7 +211,7 @@ class Newfill extends BaseController
         $spid=['depart_link'=>""];
       if($pid!=0){
           $spid = Db::name('company_item')->where(['id'=>$pid,'is_del'=>0])->find();
-          if(!empty($spid)){
+          if(empty($spid)){
               return error_show(1004,"父级数据不能为空");
           }
       }