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
81d1c931
Commit
81d1c931
authored
Feb 09, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取楼盘信息-判断来自b端还是c端
parent
463c5784
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
AppChat.php
application/chat/controller/AppChat.php
+12
-8
No files found.
application/chat/controller/AppChat.php
View file @
81d1c931
...
...
@@ -231,23 +231,27 @@ class AppChat extends Basic
{
$homeurl
=
IMG_PATH
;
$params
=
$this
->
params
;
$params
[
'id'
]
=
4762
;
if
(
!
isset
(
$params
[
'id'
]))
{
/*$params['id']=4762;
$params['from']='b';*/
if
(
!
isset
(
$params
[
'id'
])
||
!
isset
(
$params
[
'from'
])
)
{
return
$this
->
response
(
"300"
,
"参数不全"
,
[
'remote_groupid'
=>
''
]);
}
$id
=
$params
[
'id'
];
$from
=
$params
[
'from'
];
//主表查询商铺详细信息
$HouseInfos
=
new
HouseInfos
();
$HouseInfosre
=
$HouseInfos
->
getHousepusmessage
(
$id
);
//dump($HouseInfosre);
if
(
$HouseInfosre
)
{
//副表查询c端显示名称
$HouseinfoExts
=
new
HouseinfoExts
();
$HouseinfoExtsInfosre
=
$HouseinfoExts
->
getHouse_ext
(
$id
);
//dump($HouseinfoExtsInfosre);
$data
[
'title'
]
=
$HouseinfoExtsInfosre
[
0
][
'foreign_name'
]
?
$HouseinfoExtsInfosre
[
0
][
'foreign_name'
]
:
'未知商铺'
;
$data
[
'title'
]
=
$HouseInfosre
[
0
][
'title'
];
if
(
$from
==
'c'
){
//副表查询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'
]
:
''
;
...
...
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