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
484ef8f2
Commit
484ef8f2
authored
Sep 04, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
独家合同上传
parent
83653517
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
GHouses.php
application/model/GHouses.php
+10
-10
No files found.
application/model/GHouses.php
View file @
484ef8f2
...
...
@@ -801,29 +801,29 @@ class GHouses extends BaseModel
$agents
=
new
GHousesToAgents
();
$agents
->
addAgents
(
$data
[
'exclusive_id'
],
$house_id
,
3
,
$operation_id
);
$m_house_file
=
new
GHouseFile
();
//新增附件
if
(
!
empty
(
$data
[
'exclusive_file'
]))
{
$exclusive_file_arr
=
explode
(
','
,
$data
[
'exclusive_file'
]);
$
m_house_file
=
new
GHouseFile
()
;
$
save_data
=
[]
;
foreach
(
$exclusive_file_arr
as
$k
=>
$v
)
{
$save_data
[
'file_name'
]
=
$v
;
$save_data
[
'house_id'
]
=
$house_id
;
$save_data
[
'type'
]
=
0
;
$save_data
[
'status'
]
=
0
;
$m_house_file
->
editData
(
$save_data
);
$save_data
[
$k
][
'file_name'
]
=
$v
;
$save_data
[
$k
][
'house_id'
]
=
$house_id
;
$save_data
[
$k
][
'type'
]
=
0
;
$save_data
[
$k
][
'status'
]
=
0
;
}
$m_house_file
->
insertAll
(
$save_data
);
}
//伪删除附件
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
)
{
$save_data
[
'status'
]
=
1
;
$m_house_file
->
editData
(
$save_data
,
$v
);
$m_house_file
->
where
(
'id'
,
$v
)
->
update
([
'status'
=>
1
]);
}
}
}
if
(
$result
==
1
||
$ext_result
==
1
)
{
...
...
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