allocatr/application/services/DebugLogService.php
2025-07-03 15:01:00 +08:00

18 lines
355 B
PHP

<?php
namespace app\services;
class DebugLogService extends BaseService
{
public function create(string $title, string $content)
{
$model = $this->getDebugLogModel();
$model->title = $title;
$model->content = $content;
$model->create_time = datetime(time());
$model->save();
return true;
}
}