panlumeng 3 năm trước cách đây
mục cha
commit
cbc2844c76
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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不能为空");
         }