panlumeng 3 년 전
부모
커밋
cbc2844c76
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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不能为空");
         }