Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
ae7892b9
Commit
ae7892b9
authored
Sep 04, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
独家合同上传
parent
4a010f4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
UploadFileService.php
application/api_broker/service/UploadFileService.php
+4
-0
GHouses.php
application/model/GHouses.php
+2
-2
No files found.
application/api_broker/service/UploadFileService.php
View file @
ae7892b9
...
...
@@ -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'
]
=
"上传图片类型错误"
;
...
...
application/model/GHouses.php
View file @
ae7892b9
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment