|
@@ -27,7 +27,7 @@ class Customar extends BaseController
|
|
if ($companyName == "") {
|
|
if ($companyName == "") {
|
|
return error_show(1002, "参数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 === "") {
|
|
if ($parent === "") {
|
|
return error_show(1002, "参数parent不能为空");
|
|
return error_show(1002, "参数parent不能为空");
|
|
}
|
|
}
|