修改消息推送

This commit is contained in:
2023-04-04 20:38:32 +08:00
parent 1e26648b8b
commit 5508c9a200
4 changed files with 25 additions and 4 deletions
@@ -138,6 +138,11 @@ class SendStationMessageConsumer extends ConsumerMessage
}
}
// 消息标题
if (!isset($push_data['notice_title']) && !isset($push_data['notice_brief_type'])){
return false;
}
return true;
}
@@ -85,6 +85,8 @@ class SendSubMessageConsumer extends ConsumerMessage
return Result::DROP;
}
Log::getInstance()->info("订阅消息推送数据记录:" . json_encode($send_data,JSON_UNESCAPED_UNICODE));
// 获取open_id
$UserService = new UserService();
$open_id = $UserService->getOpenIdWithUserId($user['user_id'],$user['user_type']);