/** * 获取用户元数据 * * @param integer $uid 用户ID * @param string $metaKey 键名 * @throws ResourceException */ public function getUserMetaAction($uid, $metaKey) { $meta = Usermeta::findRow($uid, $metaKey); if ($meta) { unset($meta->meta_id); $this->response(200, 'OK', $meta); } else { throw new ResourceException('Not Found', 404); } }