Skip to content

Commit

Permalink
优化跨天数据处理逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
taksssss committed Sep 1, 2024
1 parent 8963746 commit bc2ad33
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions epg/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,6 @@ function processXmlData($xml_data, $date, $db, $gen_list) {
$currentChannelProgrammes[$channelId]['diyp_data'][$start['date']] ?? [],
$crossDayProgrammes[$channelId][$start['date']]
);
print_r($crossDayProgrammes[$channelId][$start['date']]);
echo "<br>";
$currentChannelProgrammes[$channelId]['channel_name'] = $channelName;
unset($crossDayProgrammes[$channelId][$start['date']]);
}
Expand Down Expand Up @@ -350,9 +348,6 @@ function insertDataToDatabase($channelsData, $db) {

foreach ($channelsData as $channelId => $channelData) {
$channelName = $channelData['channel_name'];
if($channelName == null) {
print_r($channelData);
}
foreach ($channelData['diyp_data'] as $date => $diypProgrammes) {
// 生成 epg_diyp 数据内容
$diypContent = json_encode([
Expand Down

0 comments on commit bc2ad33

Please sign in to comment.