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
e2b36ca7
Commit
e2b36ca7
authored
Feb 09, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
副表查询c端显示名称
parent
7ba15f0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
2 deletions
+43
-2
AppChat.php
application/chat/controller/AppChat.php
+10
-2
HouseinfoExts.php
application/model/HouseinfoExts.php
+33
-0
No files found.
application/chat/controller/AppChat.php
View file @
e2b36ca7
...
...
@@ -16,7 +16,9 @@ use app\chat\service\ChatService;
use
app\chat\utils\RPush
;
use
app\extra\RedisPackage
;
use
app\model\ChatMsg
;
use
app\model\GHousesExt
;
use
app\model\HouseImgs
;
use
app\model\HouseinfoExts
;
use
app\model\HouseInfos
;
use
think\Cache
;
use
Think\Log
;
...
...
@@ -226,17 +228,23 @@ class AppChat extends Basic
{
$homeurl
=
IMG_PATH
;
$params
=
$this
->
params
;
//$params['id']=31
2;
$params
[
'id'
]
=
476
2
;
if
(
!
isset
(
$params
[
'id'
]))
{
return
$this
->
response
(
"300"
,
"参数不全"
,
[
'remote_groupid'
=>
''
]);
}
$id
=
$params
[
'id'
];
//主表查询商铺详细信息
$HouseInfos
=
new
HouseInfos
();
$HouseInfosre
=
$HouseInfos
->
getHousepusmessage
(
$id
);
//dump($HouseInfosre);
if
(
$HouseInfosre
)
{
$data
[
'title'
]
=
$HouseInfosre
[
0
][
'title'
];
//副表查询c端显示名称
$HouseinfoExts
=
new
HouseinfoExts
();
$HouseinfoExtsInfosre
=
$HouseinfoExts
->
getHouse_ext
(
$id
);
//dump($HouseinfoExtsInfosre);
$data
[
'title'
]
=
$HouseinfoExtsInfosre
[
0
][
'foreign_name'
]
?
$HouseinfoExtsInfosre
[
0
][
'foreign_name'
]
:
'未知商铺'
;
//dump($HouseInfosre[0]['room_area']);
//dump($HouseInfosre[0]['room_area2']);
$room_area
=
$HouseInfosre
[
0
][
'room_area'
]
?
$HouseInfosre
[
0
][
'room_area'
]
:
''
;
...
...
application/model/HouseinfoExts.php
0 → 100644
View file @
e2b36ca7
<?php
namespace
app\model
;
use
think\Model
;
class
HouseinfoExts
extends
Model
{
protected
$table
=
'houseinfo_exts'
;
protected
$HouseinfoExts
;
function
__construct
()
{
$this
->
HouseinfoExts
=
Db
(
$this
->
table
);
}
function
getHouse_ext
(
$id
)
{
$HouseinfoExtsInfosre
=
$this
->
HouseinfoExts
->
where
(
'house_id'
,
$id
)
//->field('id,house_id,foreign_name,address_detail_c,province_c,province_code,city_c,city_code,district_c,district_code,foreign_advantage,created,modified')
->
select
();
return
$HouseinfoExtsInfosre
;
}
}
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