edit-admin-edit_biz
This commit is contained in:
@@ -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']){
|
||||
|
||||
Reference in New Issue
Block a user