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
35490d4b
Commit
35490d4b
authored
Sep 04, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
605764cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Houses.php
application/index/controller/Houses.php
+2
-2
GHouses.php
application/model/GHouses.php
+5
-5
No files found.
application/index/controller/Houses.php
View file @
35490d4b
...
...
@@ -485,7 +485,7 @@ class Houses extends Basic
public
function
editExclusive
()
{
if
(
$this
->
params
[
'houses_id'
])
{
$this
->
data
=
$this
->
house
->
exclusive
(
$this
->
params
,
$this
->
params
[
'houses_id'
]);
$this
->
data
=
$this
->
house
->
exclusive
(
$this
->
params
,
$this
->
params
[
'houses_id'
]
,
$this
->
userId
);
}
else
{
$this
->
code
=
101
;
$this
->
msg
=
'houses_id is null'
;
...
...
@@ -506,7 +506,7 @@ class Houses extends Basic
public
function
addExclusive
()
{
if
(
$this
->
params
[
'houses_id'
])
{
$this
->
data
=
$this
->
house
->
exclusive
(
$this
->
params
,
$this
->
params
[
'houses_id'
]);
$this
->
data
=
$this
->
house
->
exclusive
(
$this
->
params
,
$this
->
params
[
'houses_id'
]
,
$this
->
userId
);
}
else
{
$this
->
code
=
101
;
$this
->
msg
=
'houses_id is null'
;
...
...
application/model/GHouses.php
View file @
35490d4b
...
...
@@ -774,13 +774,14 @@ class GHouses extends BaseModel
*
* @param $data
* @param $house_id
* @param $operation_id
* @return bool
* @throws \Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\PDOException
*/
public
function
exclusive
(
$data
,
$house_id
)
public
function
exclusive
(
$data
,
$house_id
,
$operation_id
)
{
$this
->
startTrans
();
$result
=
$this
->
save
([
...
...
@@ -798,7 +799,7 @@ class GHouses extends BaseModel
$house_img
->
editExclusiveImg
(
$data
,
$house_id
);
$agents
=
new
GHousesToAgents
();
$agents
->
addAgents
(
$data
[
'exclusive_id'
],
$house_id
,
3
);
$agents
->
addAgents
(
$data
[
'exclusive_id'
],
$house_id
,
3
,
$operation_id
);
//新增附件
if
(
isset
(
$data
[
'exclusive_file'
]))
{
...
...
@@ -818,9 +819,8 @@ class GHouses extends BaseModel
$file_id_arr
=
explode
(
','
,
$data
[
'del_file_id'
]);
$m_house_file
=
new
GHouseFile
();
foreach
(
$file_id_arr
as
$k
=>
$v
)
{
$save_data
[
'id'
]
=
$v
;
$save_data
[
'status'
]
=
1
;
$m_house_file
->
editData
(
$save_data
);
$m_house_file
->
editData
(
$save_data
,
$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