Files
fdesk/app/controller/IndexController.php
T
mzl92 a6f2284f51 Merge branch 'feature/mzl_dev' into develop
# Conflicts:
#	app/common/controller/AuthController.php
#	app/common/logic/AuthLogic.php
#	app/common/model/User.php
#	app/controller/IndexController.php
#	app/functions.php
#	app/middleware/AuthCheck.php
#	app/view/index/qrcode.html
#	composer.json
#	composer.lock
#	config/middleware.php
#	config/route.php
#	config/whitelist.php
2025-07-11 15:21:00 +08:00

27 lines
439 B
PHP

<?php
namespace app\controller;
use support\Request;
class IndexController
{
protected $noNeedLogin = ['index', 'view'];
public function index(Request $request)
{
return htmlpage();
}
public function view(Request $request)
{
return view('index/qrcode', ['name' => 'webman']);
}
public function json(Request $request)
{
return json(['code' => 0, 'msg' => 'ok']);
}
}