no message

This commit is contained in:
hellcat committed 2025-04-30 19:03:24 +08:00
1 parent 912098c0b6
commit e59aa4e049
11 files changed
+180 -27

No files matched your search

@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace App\Controllers\TomApi;
use Psr\Http\Message\ResponseInterface;
use Slim\Http\Response;
use Slim\Http\ServerRequest;
use App\Models\Huodong;
//use App\Models\TgStep;
final class HuodongController
{
public function findByDate(ServerRequest $request, Response $response, array $args)
{
$sFindDate = $args['date'];
$oHuodong = Huodong::where("start_date", "<=", $sFindDate)->where("end_date", ">=", $sFindDate)->first();
if ($oHuodong) {
echo json_encode($oHuodong);
}
exit;
}
}