panlumeng 3 years ago
parent
commit
bc32f23a80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Customar.php

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

@@ -31,7 +31,7 @@ class Customar extends BaseController
         if (!empty($rename)) {
             return error_show(1002, "公司名称已存在");
         }
-        $parent = isset($this->post['parent']) && $this->post['parent'] !== "" ? intval($this->post['parent'] ) : "0";
+        $parent = isset($this->post['parent']) && $this->post['parent'] !== "" ? intval($this->post['parent'] ) : "";
 //        if ($parent === "") {
 //            return error_show(1002, "参数parent不能为空");
 //        }