IsLogin(); } /** * 个人资料 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @date 2022-11-18 * @desc description */ public function Index() { $data = [ // 用户数据 'data' => UserService::UserHandle(UserService::UserInfo('id', $this->user['id'])), // 性别 'gender_list' => MyConst('common_gender_list'), ]; return ApiService::ApiDataReturn(DataReturn('success', 0, $data)); } /** * 保存 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @date 2022-11-18 * @desc description */ public function Save() { $params = $this->data_request; $params['user'] = $this->user; return ApiService::ApiDataReturn(UserService::PersonalSave($params)); } /** * 用户头像上传 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @date 2018-12-03 * @desc description */ public function UserAvatarUpload() { $params = $this->data_request; $params['user'] = $this->user; $params['img_field'] = 'file'; return ApiService::ApiDataReturn(UserService::UserAvatarUpload($params)); } } ?>