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
298c01bd
Commit
298c01bd
authored
Jun 12, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
is_alert
parent
a2086378
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+8
-0
No files found.
application/index/service/OfficeRoomService.php
View file @
298c01bd
...
@@ -38,6 +38,7 @@ class OfficeRoomService
...
@@ -38,6 +38,7 @@ class OfficeRoomService
private
$m_building_stations
;
private
$m_building_stations
;
private
$redis_service
;
private
$redis_service
;
private
$m_house_file
;
private
$m_house_file
;
private
$m_office
;
public
function
__construct
()
public
function
__construct
()
...
@@ -52,6 +53,7 @@ class OfficeRoomService
...
@@ -52,6 +53,7 @@ class OfficeRoomService
$this
->
m_building_stations
=
new
OfficeGBuildingStations
();
$this
->
m_building_stations
=
new
OfficeGBuildingStations
();
$this
->
redis_service
=
new
RedisCacheService
();
$this
->
redis_service
=
new
RedisCacheService
();
$this
->
m_house_file
=
new
OfficeGHouseFile
();
$this
->
m_house_file
=
new
OfficeGHouseFile
();
$this
->
m_office
=
new
OfficeGBuilding
();
if
(
CURRENT_URL
==
'https://api.tonglianjituan.com/'
)
{
if
(
CURRENT_URL
==
'https://api.tonglianjituan.com/'
)
{
$this
->
internet_path
=
IMAGES_URL
.
'/resource/lib/Attachments/images/'
;
$this
->
internet_path
=
IMAGES_URL
.
'/resource/lib/Attachments/images/'
;
...
@@ -216,8 +218,14 @@ class OfficeRoomService
...
@@ -216,8 +218,14 @@ class OfficeRoomService
$m_operating
->
record
(
$agent_id
,
2
,
$remark
,
$id
);
$m_operating
->
record
(
$agent_id
,
2
,
$remark
,
$id
);
}
}
$status
=
$this
->
m_office
->
getFieldOneValue
(
'status'
,
[
'id'
=>
$data
[
'building_id'
]]);
$is_alert
=
0
;
if
(
$status
!=
1
)
{
$is_alert
=
1
;
}
$result
[
'status'
]
=
'successful'
;
$result
[
'status'
]
=
'successful'
;
$result
[
'data'
][
'house_id'
]
=
$id
;
$result
[
'data'
][
'house_id'
]
=
$id
;
$result
[
'data'
][
'is_alert'
]
=
$is_alert
;
}
else
{
}
else
{
$result
[
'msg'
]
=
'新增或编辑失败!'
;
$result
[
'msg'
]
=
'新增或编辑失败!'
;
}
}
...
...
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