/** * --------------------------------------------------------------------------------------------- * > 接口说明:头像列表接口 * <code> * URL地址:/image/faceList * 提交方式:GET * </code> * --------------------------------------------------------------------------------------------- * @title 头像列表接口 * @action /image/faceList * @method get */ public function faceListAction() { // valid face ids $faceId = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14); // get face images $faceList = array(); foreach ($faceId as $id) { $faceList[] = Weibo_Util_Image::getFaceImage($id); } $this->render('10000', 'Get face list ok', array('Image.list' => $faceList)); }