27 lines
434 B
PHP
27 lines
434 B
PHP
<?php
|
|
namespace app\index\controller;
|
|
|
|
use app\common\controller\BaseController;
|
|
use think\facade\Request;
|
|
use think\facade\Session;
|
|
use think\facade\Cache;
|
|
use think\Db;
|
|
|
|
|
|
|
|
class User extends BaseController
|
|
{
|
|
|
|
//用户中心
|
|
public function username()
|
|
{
|
|
$user['user_id'] = session::get('user_id');
|
|
$username = session::get('user_name');
|
|
$u = Request::param('username');
|
|
//halt($u);
|
|
|
|
return view();
|
|
}
|
|
|
|
|
|
} |