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
e14087c0
Commit
e14087c0
authored
Aug 23, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审核消息
parent
a068d544
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
PushMessageService.php
application/api_broker/service/PushMessageService.php
+25
-3
PushMessageTask.php
application/task/controller/PushMessageTask.php
+1
-0
No files found.
application/api_broker/service/PushMessageService.php
View file @
e14087c0
...
...
@@ -451,10 +451,12 @@ class PushMessageService
$this
->
pushAgentAllDeviceId
(
$v
[
'addressee_id'
],
$title
,
$v
[
'message'
],
$type
,
$id
,
$is_forbidden
,
$v
[
'house_id'
],
$v
[
'order_id'
]);
$update_data
[
'status'
]
=
1
;
$update_data
[
'send_time'
]
=
date
(
'Y-m-d H:i:s'
);
$m_push
->
updateData
(
$update_data
,
[
'id'
=>
$v
[
'id'
]
]);
$id_array
[]
=
$v
[
'id'
];
}
$update_data
[
'status'
]
=
1
;
$update_data
[
'send_time'
]
=
date
(
'Y-m-d H:i:s'
);
$m_push
->
updateData
(
$update_data
,
[
'id'
=>
[
'in'
,
$id_array
]
]);
}
return
;
}
...
...
@@ -610,4 +612,23 @@ class PushMessageService
$this
->
record
(
6
,
0
,
[
$agent_id
],
$operation_id
,
$record_data
);
return
true
;
}
/**
*
*/
public
function
pushCheckRecord
()
{
$m_push
=
new
MPushCheckMessage
();
$field
=
'id,addressee_id,type,message,house_id,user_id,order_id,title'
;
$where
[
'status'
]
=
$id
=
$is_forbidden
=
0
;
$push_data
=
$m_push
->
getDateLimit
(
$field
,
$where
,
100
);
foreach
(
$push_data
[
'data'
]
as
$k
=>
$v
)
{
$this
->
pushAgentAllDeviceId
(
$v
[
'addressee_id'
],
$v
[
'title'
],
$v
[
'message'
],
$v
[
'type'
],
$id
,
$is_forbidden
,
$v
[
'house_id'
],
$v
[
'order_id'
]);
$id_array
[]
=
$v
[
'id'
];
}
$update_data
[
'status'
]
=
1
;
$update_data
[
'send_time'
]
=
date
(
'Y-m-d H:i:s'
);
$m_push
->
updateData
(
$update_data
,
[
'id'
=>
[
'in'
,
$id_array
]
]);
}
}
\ No newline at end of file
application/task/controller/PushMessageTask.php
View file @
e14087c0
...
...
@@ -21,6 +21,7 @@ class PushMessageTask
//经纪人
$push
=
new
PushMessageService
();
$push
->
pushRecord
();
$push
->
pushCheckRecord
();
//客户
$push
=
new
PushClientService
();
...
...
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