Initial commit: 교육 프로젝트 배포

This commit is contained in:
송대일
2026-07-01 18:32:42 +09:00
commit be6dccd120
1483 changed files with 5082202 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
<?php
session_start();
$_SESSION['ss_mb_id'] = 'U001';
function call_save(array $post): array {
$_POST = $post;
$_SERVER['REQUEST_METHOD'] = 'POST';
ob_start();
include __DIR__ . '/edu/bbs/api/save_learning.php';
$out = ob_get_clean();
return json_decode($out, true) ?: ['raw' => $out];
}
$contentId = '20260316-069';
$r1 = call_save([
'content_id' => $contentId,
'watch_tm' => '180',
'content_tm' => '1100',
'all_tm_increment' => '60',
'all_tm' => '0',
'completed' => '0',
'is_watching' => 'Y',
]);
$r2 = call_save([
'content_id' => $contentId,
'watch_tm' => '245',
'content_tm' => '1100',
'all_tm_increment' => '60',
'all_tm' => '0',
'completed' => '0',
'is_watching' => 'Y',
]);
echo json_encode(['r1' => $r1, 'r2' => $r2], JSON_UNESCAPED_UNICODE), PHP_EOL;