...
|
...
|
@@ -112,8 +112,17 @@ class LoginController extends HomeBaseController |
|
|
|
|
|
//首页个人中心
|
|
|
public function info(){
|
|
|
$login = cmf_is_user_login();
|
|
|
if($login) {
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//退出登录
|
|
|
public function logout(){
|
|
|
cmf_update_current_user(NULL);
|
|
|
$this->apiResponse(1,'退出成功!');
|
|
|
}
|
|
|
|
|
|
//首页个人中心修改头像
|
|
|
public function updateAvatar(){
|
...
|
...
|
@@ -157,8 +166,11 @@ class LoginController extends HomeBaseController |
|
|
|
|
|
//个人中心编辑页面
|
|
|
public function editInfo(){
|
|
|
$login = cmf_is_user_login();
|
|
|
if($login) {
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//个人中心编辑提交
|
|
|
public function updateNickname(){
|
...
|
...
|
@@ -186,6 +198,8 @@ class LoginController extends HomeBaseController |
|
|
|
|
|
//我的收藏列表
|
|
|
public function myCollection(){
|
|
|
$login = cmf_is_user_login();
|
|
|
if($login) {
|
|
|
$limit = $this->limit;
|
|
|
$uid = cmf_get_current_user_id();
|
|
|
// $collectionModel = new CollectionModel();
|
...
|
...
|
@@ -227,6 +241,7 @@ class LoginController extends HomeBaseController |
|
|
$this->assign('page',$page);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//搜索列表
|
|
|
public function searchList(){
|
...
|
...
|
|