edit-admin-edit_biz

This commit is contained in:
lccsw
2022-04-03 09:44:59 +08:00
parent 6a54c271fc
commit 620a899519
+4 -2
View File
@@ -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']){