用户头像

This commit is contained in:
devil_gong
2018-10-16 14:49:05 +08:00
parent 07d6be704a
commit e0fcaddb8b
15 changed files with 227 additions and 136 deletions

View File

@ -2,6 +2,8 @@
namespace Home\Controller;
use Service\UserService;
/**
* 安全
* @author Devil
@ -395,7 +397,7 @@ class SafetyController extends CommonController
if(M('User')->where(array('id'=>$this->user['id']))->save($data) !== false)
{
// 更新用户session数据
$this->UserLoginRecord($this->user['id']);
UserService::UserLoginRecord($this->user['id']);
// 校验成功标记
unset($_SESSION['safety_'.$type]);