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
4794593b
Commit
4794593b
authored
Apr 09, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
1ef260a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
63 deletions
+2
-63
AppChat.php
application/chat/controller/AppChat.php
+2
-63
No files found.
application/chat/controller/AppChat.php
View file @
4794593b
...
@@ -237,72 +237,11 @@ class AppChat extends Basic
...
@@ -237,72 +237,11 @@ class AppChat extends Basic
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
}
}
/**
/**
*
聊天页面获取三个
商铺信息
*
获取聊天
商铺信息
* @return \think\Response
* @return \think\Response
*/
*/
public
function
pushMsg_gethouseinfo
()
{
$homeurl
=
IMG_PATH
;
$params
=
$this
->
params
;
/*$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
)
{
$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'
]
:
''
;
$room_area2
=
$HouseInfosre
[
0
][
'room_area2'
]
?
'-'
.
$HouseInfosre
[
0
][
'room_area2'
]
:
''
;
$data
[
'room_area_all'
]
=
'暂无!'
;
if
(
$room_area
||
$room_area2
)
{
$data
[
'room_area_all'
]
=
$room_area
.
$room_area2
.
'm²'
;
}
$data
[
'price'
]
=
'暂无!'
;
if
(
$HouseInfosre
[
0
][
'rent_type'
])
{
//rent_type COMMENT '1.月租金 2.营业额扣点 3.每平方米租金',
$message
[
1
]
=
'月租金:'
.
$HouseInfosre
[
0
][
'price'
]
.
'元/月'
;
$message
[
2
]
=
'营业额扣点:'
.
$HouseInfosre
[
0
][
'price'
]
.
'%'
;
$message
[
3
]
=
'每平方米租金:'
.
$HouseInfosre
[
0
][
'price'
]
.
'元/天/㎡'
;
$data
[
'price'
]
=
$message
[
$HouseInfosre
[
0
][
'rent_type'
]];
}
//同联默认图片,如果用户没上传的话/img/houseinfobackgroundimg.png
$data
[
'imagename'
]
=
$homeurl
.
'/img/houseinfobackgroundimg_new.png'
;
$HouseImgs
=
new
HouseImgs
();
$HouseImgsre
=
$HouseImgs
->
getHouseImgs
(
$id
,
1
);
//用户上传了就用上传的
if
(
$HouseImgsre
)
{
$data
[
'imagename'
]
=
$homeurl
.
'/small_'
.
$HouseImgsre
[
0
][
'imagename'
];
}
// dump($HouseInfosre);
// dump($data);
// exit;
return
$this
->
response
(
"200"
,
"success!"
,
$data
);
}
else
{
return
$this
->
response
(
"400"
,
"暂无数据!"
);
}
}
public
function
getHouseInfoByFrom
()
public
function
getHouseInfoByFrom
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
...
...
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