Commit ae7892b9 authored by hujun's avatar hujun

独家合同上传

parent 4a010f4d
......@@ -82,6 +82,10 @@ class UploadFileService
$path .= 'static/shop_image_depot/';
$internet_path = 'static/shop_image_depot/';
break;
case 'exclusive_file' :
$path .= 'static/exclusive_file/';
$internet_path = 'static/exclusive_file/';
break;
default :
$data['code'] = 101;
$data['msg'] = "上传图片类型错误";
......
......@@ -802,7 +802,7 @@ class GHouses extends BaseModel
$agents->addAgents($data['exclusive_id'], $house_id, 3, $operation_id);
//新增附件
if (isset($data['exclusive_file'])) {
if (!empty($data['exclusive_file'])) {
$exclusive_file_arr = explode(',', $data['exclusive_file']);
$m_house_file = new GHouseFile();
foreach ($exclusive_file_arr as $k=>$v) {
......@@ -815,7 +815,7 @@ class GHouses extends BaseModel
}
//伪删除附件
if (isset($data['del_file_id'])) {
if (!empty($data['del_file_id'])) {
$file_id_arr = explode(',', $data['del_file_id']);
$m_house_file = new GHouseFile();
foreach ($file_id_arr as $k=>$v) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment