This commit is contained in:
weiz 2023-09-05 22:27:10 +08:00
parent f0227460f1
commit 411aef7178

View File

@ -226,7 +226,7 @@ class LogisticsLogic extends BaseLogic
]);
//推送消息
$register_id = Courier::where('id',$courier['user_id'])->column('register_id');
if(!empty($register_id)){
if($register_id && !empty($register_id)){
$push_result = push_message($register_id[0],'您有一条新的配送任务,请尽快处理!!');
if($push_result['code'] == 0) {
Log::write('["极光推送:"]'.$push_result['msg'],'error');