Files
think-worker/tests/stub/app/controller/Index.php
2026-01-06 13:37:07 +08:00

21 lines
290 B
PHP

<?php
namespace app\controller;
use think\facade\Cookie;
use think\Request;
class Index
{
public function test()
{
Cookie::set('name', 'think');
return 'test';
}
public function json(Request $request)
{
return json($request->post());
}
}