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

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

@@ -27,7 +27,7 @@ class Customar extends BaseController
         if ($companyName == "") {
             return error_show(1002, "参数companyName不能为空");
         }
-        $parent = isset($this->post['parent']) && $this->post['parent'] !== "" ? $this->post['parent'] : "";
+        $parent = isset($this->post['parent']) && $this->post['parent'] !== "" ? intval($this->post['parent'] ) : "";
         if ($parent === "") {
             return error_show(1002, "参数parent不能为空");
         }