a
This commit is contained in:
parent
6400e6e005
commit
06ec10fd9f
@ -225,8 +225,9 @@ class LogisticsLogic extends BaseLogic
|
|||||||
'create_time' => time(),
|
'create_time' => time(),
|
||||||
]);
|
]);
|
||||||
//推送消息
|
//推送消息
|
||||||
if(!empty($courier['register_id'])){
|
$register_id = Courier::where('id',$courier['user_id'])->column('register_id');
|
||||||
$push_result = push_message($courier['register_id'],'您有一条新的配送任务,请尽快处理!!');
|
if(!empty($register_id)){
|
||||||
|
$push_result = push_message($register_id[0],'您有一条新的配送任务,请尽快处理!!');
|
||||||
if($push_result['code'] == 0) {
|
if($push_result['code'] == 0) {
|
||||||
Log::write('["极光推送:"]'.$push_result['msg'],'error');
|
Log::write('["极光推送:"]'.$push_result['msg'],'error');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user