IsLogin(); } /** * [Index 首页] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-22T16:50:32+0800 */ public function Index() { $this->assign('personal_show_list', NavigationService::UsersPersonalShowFieldList()); return $this->fetch(); } /** * [SaveInfo 编辑页面] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-03-26T14:26:01+0800 */ public function SaveInfo() { // 性别 $this->assign('common_gender_list', lang('common_gender_list')); // 数据 $this->assign('data', $this->user); return $this->fetch(); } /** * [Save 数据保存] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-03-26T14:26:34+0800 */ public function Save() { // 是否ajax请求 if(!IS_AJAX) { $this->error('非法访问'); } // 开始操作 $params = input('post.'); $params['user'] = $this->user; return UserService::PersonalSave($params); } } ?>