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
50583724
Commit
50583724
authored
Apr 09, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取商铺信息
parent
7e177a61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
AppChat.php
application/chat/controller/AppChat.php
+14
-10
No files found.
application/chat/controller/AppChat.php
View file @
50583724
...
...
@@ -306,23 +306,20 @@ class AppChat extends Basic
public
function
getHouseInfoByFrom
()
{
$params
=
$this
->
params
;
/* $params = array(
'id' => 3,
'from' => 'b'
);*/
/* $params = array(
'id' => 3,
'from' => 'b'
);*/
if
(
!
isset
(
$params
[
'id'
])
||
!
isset
(
$params
[
'from'
]))
{
return
$this
->
response
(
"300"
,
"参数不全"
);
}
$conditions
[
'id'
]
=
array
(
"eq"
,
$params
[
"id"
]
);
$gHousesModel
=
new
GHouses
();
$gHousesModel
=
new
GHouses
();
//internal_title c端
if
(
$params
[
"from"
]
==
"b"
)
{
$field
=
"id,external_title as title,shop_area_start,shop_area_end,rent_type,rent_price"
;
$field
=
"id,external_title as title,shop_area_start,shop_area_end,rent_type,rent_price
,shop_type
"
;
}
else
{
$field
=
"id,internal_title as title,shop_area_start,shop_area_end,rent_type,rent_price"
;
$field
=
"id,internal_title as title,shop_area_start,shop_area_end,rent_type,rent_price
,shop_type
"
;
}
$result
=
$gHousesModel
->
getHouseInfoById
(
$field
,
$conditions
);
...
...
@@ -351,6 +348,13 @@ class AppChat extends Basic
break
;
}
$result
[
'price'
]
=
$message
;
if
(
$result
[
"shop_type"
]
==
0
)
{
$result
[
'room_area_all'
]
=
$result
[
'shop_area_start'
]
.
'-'
.
$result
[
'shop_area_end'
]
.
'm²'
;
}
else
{
$result
[
'room_area_all'
]
=
$result
[
'shop_area_start'
]
.
'm²'
;
}
return
$this
->
response
(
"200"
,
"success!"
,
$result
);
}
else
{
return
$this
->
response
(
"400"
,
"暂无数据!"
);
...
...
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