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
2cfae699
Commit
2cfae699
authored
Aug 23, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update where
parent
e14087c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
PushClientService.php
application/api/service/PushClientService.php
+5
-1
PushMessageService.php
application/api_broker/service/PushMessageService.php
+11
-8
No files found.
application/api/service/PushClientService.php
View file @
2cfae699
...
@@ -91,9 +91,13 @@ class PushClientService
...
@@ -91,9 +91,13 @@ class PushClientService
}
}
$this
->
pushAgentAllDeviceId
(
$v
[
'operation_id'
],
$title
,
$content
,
$type
,
$v
[
'user_id'
],
$is_forbidden
,
$v
[
'house_id'
],
$v
[
'order_id'
],
$v
[
'message'
]);
$this
->
pushAgentAllDeviceId
(
$v
[
'operation_id'
],
$title
,
$content
,
$type
,
$v
[
'user_id'
],
$is_forbidden
,
$v
[
'house_id'
],
$v
[
'order_id'
],
$v
[
'message'
]);
$id_array
[]
=
$v
[
'id'
];
}
if
(
isset
(
$id_array
))
{
$update_data
[
'status'
]
=
1
;
$update_data
[
'status'
]
=
1
;
$update_data
[
'send_time'
]
=
date
(
'Y-m-d H:i:s'
);
$update_data
[
'send_time'
]
=
date
(
'Y-m-d H:i:s'
);
$this
->
m_push
->
updateData
(
$update_data
,
[
'id'
=>
$v
[
'id'
]
]);
$this
->
m_push
->
updateData
(
$update_data
,
[
'id'
=>
[
'in'
,
$id_array
]
]);
}
}
return
;
return
;
}
}
...
...
application/api_broker/service/PushMessageService.php
View file @
2cfae699
...
@@ -453,10 +453,11 @@ class PushMessageService
...
@@ -453,10 +453,11 @@ class PushMessageService
$id_array
[]
=
$v
[
'id'
];
$id_array
[]
=
$v
[
'id'
];
}
}
if
(
isset
(
$id_array
))
{
$update_data
[
'status'
]
=
1
;
$update_data
[
'status'
]
=
1
;
$update_data
[
'send_time'
]
=
date
(
'Y-m-d H:i:s'
);
$update_data
[
'send_time'
]
=
date
(
'Y-m-d H:i:s'
);
$m_push
->
updateData
(
$update_data
,
[
'id'
=>
[
'in'
,
$id_array
]
]);
$m_push
->
updateData
(
$update_data
,
[
'id'
=>
[
'in'
,
$id_array
]]);
}
}
}
return
;
return
;
}
}
...
@@ -626,9 +627,10 @@ class PushMessageService
...
@@ -626,9 +627,10 @@ class PushMessageService
$this
->
pushAgentAllDeviceId
(
$v
[
'addressee_id'
],
$v
[
'title'
],
$v
[
'message'
],
$v
[
'type'
],
$id
,
$is_forbidden
,
$v
[
'house_id'
],
$v
[
'order_id'
]);
$this
->
pushAgentAllDeviceId
(
$v
[
'addressee_id'
],
$v
[
'title'
],
$v
[
'message'
],
$v
[
'type'
],
$id
,
$is_forbidden
,
$v
[
'house_id'
],
$v
[
'order_id'
]);
$id_array
[]
=
$v
[
'id'
];
$id_array
[]
=
$v
[
'id'
];
}
}
if
(
isset
(
$id_array
))
{
$update_data
[
'status'
]
=
1
;
$update_data
[
'status'
]
=
1
;
$update_data
[
'send_time'
]
=
date
(
'Y-m-d H:i:s'
);
$update_data
[
'send_time'
]
=
date
(
'Y-m-d H:i:s'
);
$m_push
->
updateData
(
$update_data
,
[
'id'
=>
[
'in'
,
$id_array
]
]);
$m_push
->
updateData
(
$update_data
,
[
'id'
=>
[
'in'
,
$id_array
]]);
}
}
}
}
}
\ No newline at end of file
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