Url: https://github.com/jesse7866/ayd_task
{
"code": 0,
"msg": "success",
"data": {
"is_valid": false
}
}
{
"code": 422,
"message": "参数s只允许包含()[]{}这些字符中的一个或多个!",
"data": {}
}
{
"code": 500,
"message": "Internal Server Error",
"data": {}
}
{
"code": 500,
"message": "意外错误",
"data": {
"message": "意外错误",
"exception": "Exception",
"file": "/var/www/task/app/Http/Controllers/TaskController.php",
"line": 35,
"trace": [
{
"file": "/var/www/task/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
"line": 54,
"function": "exception",
"class": "App/Http/Controllers/TaskController",
"type": "->"
},
{
"file": "/var/www/task/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
"line": 43,
"function": "callAction",
"class": "Illuminate/Routing/Controller",
"type": "->"
},
{
"file": "/var/www/task/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 260,
"function": "dispatch",
"class": "Illuminate/Routing/ControllerDispatcher",
"type": "->"
}
]
}
}
table: loggers_20230706、loggers_20230707
Schema::create('loggers', function (Blueprint $table) {
$table->id();
$table->longText('message');
$table->string('channel')->index();
$table->string('level')->index();
$table->string('level_name');
$table->longText('context')->nullable();
$table->longText('extra')->nullable();
$table->longText('formatted');
$table->string('remote_addr')->nullable();
$table->string('user_agent', 500)->nullable();
$table->timestamp('created_at');
});
table: request_logs
Schema::create('request_logs', function (Blueprint $table) {
$table->id();
$table->string('request_id')->index();
$table->string('path')->index();
$table->string('method');
$table->text('query')->nullable();
$table->longText('request_body')->nullable();
$table->longText('response_body')->nullable();
$table->string('ip');
$table->string('url');
$table->text('headers');
$table->timestamp('created_at');
});
GET 'https://domain.com/api/task/valid/parentheses?s=()[]{()}'
POST 'https://domain.com/api/task/valid/parentheses?s=()[]{()}'
GET 'https://domain.com/api/task/valid/parentheses?s=()]}'
GET 'https://domain.com/api/task/valid/parentheses?s=()]}123'
GET 'https://domain.com/api/task/exception'
GET 'https://domain.com/api/task/valid/parentheses?s=()[]{()}'