解决linux下文件名大小写的bug、完善用户中心
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\controller\user;
|
||||
|
||||
use app\model\Member;
|
||||
|
||||
/**
|
||||
* @title 用户中心
|
||||
*/
|
||||
@@ -24,40 +22,42 @@ class Index extends Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 个人资料
|
||||
* @title 用户登录
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function profile() {
|
||||
if ($this->request->isPost()) {
|
||||
$reuslt = (new Member())->editUser($this->request, session('userInfo.uid'));
|
||||
if (false !== $reuslt) {
|
||||
return $this->success('修改成功!');
|
||||
} else {
|
||||
return $this->error('修改失败');
|
||||
}
|
||||
}else{
|
||||
$info = Member::find(session('userInfo.uid'));
|
||||
$this->data = [
|
||||
'info' => $info,
|
||||
'keyList' => Member::$useredit
|
||||
];
|
||||
return $this->fetch('user@/edit');
|
||||
}
|
||||
public function login() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 用户退出
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function logout() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 用户注册
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function register() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 忘记密码
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function forget() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 重置密码
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function repasswd() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 上传头像
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function avatar() {
|
||||
public function resetpasswd() {
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user