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
87a35494
Commit
87a35494
authored
Jan 16, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user_id
parent
78a79cb4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
AppointmentShop.php
application/api_broker/controller/AppointmentShop.php
+1
-1
Report.php
application/api_broker/controller/Report.php
+1
-1
PushMessageService.php
application/api_broker/service/PushMessageService.php
+2
-1
WatchShop.php
application/index/controller/WatchShop.php
+1
-1
No files found.
application/api_broker/controller/AppointmentShop.php
View file @
87a35494
...
@@ -155,7 +155,7 @@ class AppointmentShop extends Basic
...
@@ -155,7 +155,7 @@ class AppointmentShop extends Basic
$m_order
=
new
OrderModel
();
$m_order
=
new
OrderModel
();
$order_id
=
$m_order
->
getFieldValue
(
'id'
,
[
'f_id'
=>
$is_ok
]);
$order_id
=
$m_order
->
getFieldValue
(
'id'
,
[
'f_id'
=>
$is_ok
]);
$push
=
new
PushMessageService
();
$push
=
new
PushMessageService
();
$push
->
pushReportMessage
(
$appoint_data
[
"house_id"
],
$agent_id
,
1
,
$this
->
agentId
);
$push
->
pushReportMessage
(
$appoint_data
[
"house_id"
],
$agent_id
,
1
,
$this
->
agentId
,
$appoint_data
[
'user_id'
]
);
return
$this
->
response
(
"200"
,
$data
[
'msg'
],
[
'user_id'
=>
$appoint_data
[
"user_id"
],
'order_id'
=>
$order_id
]);
return
$this
->
response
(
"200"
,
$data
[
'msg'
],
[
'user_id'
=>
$appoint_data
[
"user_id"
],
'order_id'
=>
$order_id
]);
}
else
{
}
else
{
$appoint_watch
->
rollback
();
//回滚事务
$appoint_watch
->
rollback
();
//回滚事务
...
...
application/api_broker/controller/Report.php
View file @
87a35494
...
@@ -88,7 +88,7 @@ class Report extends Basic
...
@@ -88,7 +88,7 @@ class Report extends Basic
if
(
is_array
(
$house_ids_arr
))
{
if
(
is_array
(
$house_ids_arr
))
{
foreach
(
$house_ids_arr
as
$k
=>
$v
)
{
foreach
(
$house_ids_arr
as
$k
=>
$v
)
{
$push
->
pushReportMessage
(
$v
,
$agent_id
,
1
,
$this
->
agentId
);
//推送报备信息
$push
->
pushReportMessage
(
$v
,
$agent_id
,
1
,
$this
->
agentId
,
$user_id
);
//推送报备信息
}
}
}
}
/*记录推送*/
/*记录推送*/
...
...
application/api_broker/service/PushMessageService.php
View file @
87a35494
...
@@ -40,7 +40,7 @@ class PushMessageService
...
@@ -40,7 +40,7 @@ class PushMessageService
* @param $operation_id
* @param $operation_id
* @return bool
* @return bool
*/
*/
public
function
pushReportMessage
(
$house_id
,
$agent_id
,
$type
,
$operation_id
)
public
function
pushReportMessage
(
$house_id
,
$agent_id
,
$type
,
$operation_id
,
$user_id
)
{
{
try
{
try
{
$agent_id_arr
=
[];
$agent_id_arr
=
[];
...
@@ -57,6 +57,7 @@ class PushMessageService
...
@@ -57,6 +57,7 @@ class PushMessageService
$save
[
'message'
]
=
$content
;
$save
[
'message'
]
=
$content
;
$save
[
'order_id'
]
=
$order_id
[
'id'
];
$save
[
'order_id'
]
=
$order_id
[
'id'
];
$save
[
'house_id'
]
=
$house_id
;
$save
[
'house_id'
]
=
$house_id
;
$save
[
'user_id'
]
=
$user_id
;
foreach
(
$data
as
$k
=>
$v
)
{
foreach
(
$data
as
$k
=>
$v
)
{
// $this->pushAgentAllDeviceId($v['id'], '报备', $content);
// $this->pushAgentAllDeviceId($v['id'], '报备', $content);
$agent_id_arr
[]
=
$v
[
'id'
];
$agent_id_arr
[]
=
$v
[
'id'
];
...
...
application/index/controller/WatchShop.php
View file @
87a35494
...
@@ -157,7 +157,7 @@ class WatchShop extends Basic
...
@@ -157,7 +157,7 @@ class WatchShop extends Basic
$appoint_watch
->
commit
();
//提交事务
$appoint_watch
->
commit
();
//提交事务
$push
=
new
PushMessageService
();
$push
=
new
PushMessageService
();
$push
->
pushReportMessage
(
$appoint_data
[
"house_id"
],
$agent_id
,
1
,
$this
->
userId
);
$push
->
pushReportMessage
(
$appoint_data
[
"house_id"
],
$agent_id
,
1
,
$this
->
userId
,
$user_id
);
return
$this
->
response
(
"200"
,
$data
[
'msg'
]);
return
$this
->
response
(
"200"
,
$data
[
'msg'
]);
}
else
{
}
else
{
$appoint_watch
->
rollback
();
//回滚事务
$appoint_watch
->
rollback
();
//回滚事务
...
...
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