File Details
This commit is contained in:
@@ -215,6 +215,15 @@ try {
|
||||
resp(['ok'=>true]);
|
||||
}
|
||||
|
||||
case 'set_movie_resolution': {
|
||||
$movieId = (int)($in['movie_id'] ?? 0);
|
||||
$res = $in['resolution'] ?? null;
|
||||
if (!$movieId || !$res) fail('bad params');
|
||||
$stmt = $pdo->prepare('UPDATE movies SET resolution = ? WHERE id = ?');
|
||||
$stmt->execute([$res, $movieId]);
|
||||
resp(['ok' => true]);
|
||||
}
|
||||
|
||||
case 'get_list': {
|
||||
$type=$in['type'] ?? 'movie';
|
||||
$status=$in['status'] ?? null;
|
||||
|
||||
Reference in New Issue
Block a user