public function dorunAction() { $_array = array(); $model = $this->getProfileMenu(); unset($model['profile'], $model['contact'], $model['tag']); if (count($model) > 1) { $post = array_keys($model); } $array = array('space', 'constellation', 'local', 'nation', 'aliwangwang', 'qq', 'msn', 'mobile'); $array = array_merge($array, $post); foreach ($array as $value) { $_array[$value] = (int) $this->getInput($value, 'post'); } Wind::import('SRV:user.dm.PwUserInfoDm'); $dm = new PwUserInfoDm($this->loginUser->uid); $dm->setSecret($_array); $resource = Wekit::load('user.PwUser')->editUser($dm, PwUser::FETCH_INFO); if ($resource instanceof PwError) { $this->showError($resource->getError()); } $this->showMessage("MEDAL:success"); }