From 620a89951915e33ca6f34af7bf2396bd9768e29f Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Sun, 3 Apr 2022 09:44:59 +0800 Subject: [PATCH] edit-admin-edit_biz --- admin/controllers/biz/store/Store.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/controllers/biz/store/Store.php b/admin/controllers/biz/store/Store.php index 0fd9fbaf..295d36fa 100755 --- a/admin/controllers/biz/store/Store.php +++ b/admin/controllers/biz/store/Store.php @@ -315,6 +315,8 @@ class Store extends HD_Controller return $this->show_json(SYS_CODE_FAIL, '提交出错!'); } $id = intval($this->input->post('id')); + $company_id = intval($this->input->post('company_id', true)); + $srv_company_id = intval($this->input->post('srv_company_id', true)); $biz['biz_name'] = $this->input->post('biz_name', true); if (!$biz['biz_name']) { @@ -338,8 +340,8 @@ class Store extends HD_Controller $biz['lat'] = $this->input->post('lat', true); $biz['lng'] = $this->input->post('lng', true); $biz['type'] = intval($this->input->post('type', true)); - $biz['company_id'] = intval($this->input->post('company_id', true)); - $biz['srv_company_id'] = intval($this->input->post('srv_company_id', true)); + $company_id && $biz['company_id'] = $company_id; + $srv_company_id && $biz['srv_company_id'] = $srv_company_id; $biz['car_brand_id'] = intval($this->input->post('car_brand_id',true)); if ($biz['type']==1 && !$biz['car_brand_id']){