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
586991fd
Commit
586991fd
authored
Aug 06, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个推推送增加是否被禁用判断
parent
95089fee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
PushMessageService.php
application/api_broker/service/PushMessageService.php
+4
-2
ABindingDevice.php
application/model/ABindingDevice.php
+4
-1
No files found.
application/api_broker/service/PushMessageService.php
View file @
586991fd
...
...
@@ -222,12 +222,14 @@ class PushMessageService
/**
* @param $id
* @param $device_id
* @param $title
* @param $content
* @param null $type
* @param null $user_id
* @return bool
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
pushAgentAllDeviceId
(
$id
,
$title
,
$content
,
$type
=
null
,
$user_id
=
null
)
{
...
...
@@ -236,7 +238,7 @@ class PushMessageService
}
$m_agent_device
=
new
ABindingDevice
();
$device_id_array
=
$m_agent_device
->
getDeviceByAgentId
([
'agent_id'
=>
$id
],
'id,push_id'
);
$device_id_array
=
$m_agent_device
->
getDeviceByAgentId
([
'agent_id'
=>
$id
,
'is_forbidden'
=>
0
],
'id,push_id'
);
if
(
!
empty
(
$device_id_array
))
{
foreach
(
$device_id_array
as
$k
=>
$v
)
{
...
...
application/model/ABindingDevice.php
View file @
586991fd
...
...
@@ -58,12 +58,15 @@ class ABindingDevice extends BaseModel
}
}
/**
* 根据经纪人id获取绑定过的设备id
*
* @param array $params
* @param string $field
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getDeviceByAgentId
(
array
$params
,
string
$field
=
"id,agent_id,device_id,is_forbidden,model,push_id,is_pc"
)
{
...
...
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