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
2140ccdb
Commit
2140ccdb
authored
Sep 04, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据商铺id获取独家附件
parent
cb5d571d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
HouseService.php
application/index/service/HouseService.php
+31
-0
No files found.
application/index/service/HouseService.php
View file @
2140ccdb
...
...
@@ -12,6 +12,7 @@ namespace app\index\service;
use
app\api_broker\service\PushMessageService
;
use
app\index\validate\HouseValidate
;
use
app\model\AAgents
;
use
app\model\GHouseFile
;
use
app\model\GHouses
;
use
app\model\GHousesExt
;
use
app\model\GHousesImgs
;
...
...
@@ -153,4 +154,33 @@ class HouseService
}
return
$data
;
}
/**
* 根据商铺id获取独家附件
*
* @param $house_id
* @return mixed
*/
public
function
getHouseFile
(
$house_id
)
{
if
(
empty
(
$house_id
))
{
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
'house_id 为空'
;
return
$result
;
}
$m_house
=
new
GHouseFile
();
$where
[
'status'
]
=
0
;
$where
[
'house_id'
]
=
$house_id
;
$data
=
$m_house
->
getHouseFileAll
(
'id,file_name'
,
$where
);
if
(
$data
)
{
$result
[
'data'
]
=
$data
;
$result
[
'status'
]
=
'successful'
;
}
else
{
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
'内部错误'
;
}
return
$result
;
}
}
\ No newline at end of file
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