|
@@ -140,10 +140,10 @@ class Customer extends BaseController
|
|
|
return error_show(1002, "公司名称已存在");
|
|
|
}
|
|
|
$weight = isset($this->post['weight']) && $this->post['weight'] !== "" ? trim($this->post['weight']) : "0";
|
|
|
- $pid = isset($this->post['pid']) && $this->post['pid'] !== "" ? trim($this->post['pid']) : "";
|
|
|
- if ($pid === "") {
|
|
|
- return error_show(1002, "父级id不能为空");
|
|
|
- }
|
|
|
+ $pid = isset($this->post['pid']) && $this->post['pid'] !== "" ? trim($this->post['pid']) : "0";
|
|
|
+// if ($pid === "") {
|
|
|
+// return error_show(1002, "父级id不能为空");
|
|
|
+// }
|
|
|
if($pid!=0){
|
|
|
$spid = Db::name('customer_org1')->where(['id'=>$pid, 'is_del'=>0])->find();
|
|
|
//var_dump( Db::name('customer_org1')->getLastSql());
|