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
cefa8518
Commit
cefa8518
authored
Jun 25, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fa47d252
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
OfficeRoomApiService.php
application/api/service/OfficeRoomApiService.php
+9
-1
No files found.
application/api/service/OfficeRoomApiService.php
View file @
cefa8518
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
namespace
app\api\service
;
namespace
app\api\service
;
use
app\model\OfficeGBuildingStations
;
use
app\model\OfficeGBuildingStations
;
use
app\model\OfficeGImg
;
use
app\model\OfficeGRoom
;
use
app\model\OfficeGRoom
;
/**
/**
...
@@ -101,6 +102,8 @@ class OfficeRoomApiService
...
@@ -101,6 +102,8 @@ class OfficeRoomApiService
}
}
$result_data
=
[];
$result_data
=
[];
$gRoomImgModel
=
new
OfficeGImg
();
foreach
(
$data
as
$k
=>
$v
)
{
foreach
(
$data
as
$k
=>
$v
)
{
$tmp
[
'id'
]
=
$v
[
'id'
];
$tmp
[
'id'
]
=
$v
[
'id'
];
$tmp
[
'price'
]
=
empty
(
$v
[
'price'
])
?
0
:
$v
[
'price'
]
/
100
;
$tmp
[
'price'
]
=
empty
(
$v
[
'price'
])
?
0
:
$v
[
'price'
]
/
100
;
...
@@ -110,7 +113,12 @@ class OfficeRoomApiService
...
@@ -110,7 +113,12 @@ class OfficeRoomApiService
$tmp
[
'is_rent'
]
=
$v
[
'is_rent'
];
$tmp
[
'is_rent'
]
=
$v
[
'is_rent'
];
$area
=
$this
->
MinField
(
$v
[
'building_id'
],
'area'
);
$area
=
$this
->
MinField
(
$v
[
'building_id'
],
'area'
);
$tmp
[
'title'
]
=
$v
[
'disc'
]
.
' '
.
$v
[
'business_name'
]
.
' '
.
$v
[
'title'
]
.
' '
.
$area
.
'㎡'
;
$tmp
[
'title'
]
=
$v
[
'disc'
]
.
' '
.
$v
[
'business_name'
]
.
' '
.
$v
[
'title'
]
.
' '
.
$area
.
'㎡'
;
$result_data
[]
=
$tmp
;
$tmp
[
'api_path'
]
=
CK_IMG_URL
.
'images/'
;
$house_img_where
[
"house_id"
]
=
$v
[
"id"
];
$house_img_where
[
"img_type"
]
=
2
;
$tmp
[
"images"
]
=
$gRoomImgModel
->
getCoverImage
(
'id,img_name'
,
$where
);
$result_data
[]
=
$tmp
;
}
}
$result
[
'status'
]
=
'successful'
;
$result
[
'status'
]
=
'successful'
;
$result
[
'data'
]
=
$result_data
;
$result
[
'data'
]
=
$result_data
;
...
...
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